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

number of attributes

 
 

Return type: Integer
Returns:       The number of attributes for an element.

Syntax

number of specified? attributes
 element-qualifier*


Purpose

An operator that returns the number of attributes declared for an element.

For example, in the following code number of is applied to attributes to determine the number of attributes declared for an element and that element's parent element:

  ...
  output "Element %q has " ||
       number of attributes ||
       " attributes(s).%n" ||
       "Element %q's parent has " ||
       number of attributes of parent ||
       " attribute(s).%n"

    Related Syntax
 
Related Concepts
 
 

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

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:51:21 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.