swirl
Guide to OmniMark 7   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
  Related Syntax   Related Concepts  
operator  

data-attribute

 

 

Syntax

  data-attribute data-attribute-name of (attribute attribute-name element-qualifier*
     (indexer)?  (indexer)?  )


Purpose

Differentiates between attributes that belong to an "entity" or "entities" attribute, and other attributes. It is used in the same way as attribute, so data-attribute references can be used in any context that permits attribute references.

In the syntax, the parentheses are used to eliminate confusion between the two item indexers. The first optional item indexer (inside the parentheses) is associated with the attribute of the qualified element or external entity currently being processed. This attribute must be declared as "entity" or "entities". The second optional [...] indexer (outside the parentheses) is associated with the data attribute named in the parenthesized attribute value item.

Note that the attribute keyword can be used in external-data-entity rules to refer to the data attribute of an entity.

The following code illustrates the use of data-attribute:

  element tableref
     local integer column-count
     ...
     set column-count to number of
        data-attribute colwidth of (attribute name)

    Related Syntax
   attribute
   data-attributes
   attribute is specified
   attribute is defaulted
   attribute is implied
   attribute is
 
Related Concepts
   Attributes: type tests
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACYLIBRARIES ] [ ERRORS ]

OmniMark 7.1.2 Documentation Generated: June 28, 2005 at 5:45:02 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © Stilo Corporation, 1988-2005.