Attribute Tests

An AttributeTest matches attributes.

It has the same forms as an ElementTest:

  • attribute() (or attribute(*)) matches any attribute.

  • attribute(AttributeName, TypeName) matches an attribute by name and type.

  • attribute(*, TypeName) matches an attribute by type.