number of attribute

operator

Return type:
Integer
Returns:
The number of tokens in an attribute.
Syntax
number of attribute attribute-name (of element-expression)?
    


Purpose

The number of attribute operator returns the number of tokens in a list-valued attribute. When the attribute does not have a list-valued type, the test will always yield a value of one.

When used inside the lexical scope of an external-data-entity rule, the number of attribute operator is synonymous for the number of data-attribute operator.

Related Syntax