Attributes

[Example 2] <C>

Attributes can be accessed in similar way as elements. Notice @ in front of attribute name.

[Example 12] <C>

You can process an attribute in the same way as an element

[Example 13] <C>

You can also select elements, which contain or do not contain the given attribute. This stylesheet includes and This stylesheet excludes an element based on the attribute