operator
number of attribute attribute-name (of element-expression)?
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.