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

item of attributes

 

 

Return type: Integer
Returns:       

The position of the attribute.



Syntax
  item of specified? attributes
    element-qualifier* {string-expression}


Purpose

item of attributes can be used to determine the order in which the attributes were declared. When specified, the first declared attribute has item number 1, the second has item number 2, and so on.

When item of is applied to an item on the attributes shelf, the key indexer, {...} indexer is required.

This example illustrates how item of can be used on the attributes shelf to determine the position of an item.

item of is used in this example to ensure that a line of text is output only when the "IDENT" attribute is the first one declared in its ATTLIST.

  output "ident is the first declared attribute%n"
        when item of attributes{"ident"} = 1

    Related Syntax
   attribute
 
 
 

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

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

Copyright © Stilo Corporation, 1988-2005.