number of data-attributes

operator

Return type:
Integer
Returns:
The number of data attributes for the element.
Syntax
number of specified? data-attributes (of attribute-reference)?
    


Purpose

The number of data-attributes operator returns the number of data attributes for an attribute of an element (as specified by of attribute-reference).

Inside the lexical scope of an external-data-entity rule and if of attribute-reference is not specified, the number of data-attributes operator evaluates to the number of data attributes for the current external data entity. In this context, number of data-attributes is synonymous with number of attributes

Related Syntax