Attributes can be accessed in similar way as elements. Notice @ in front of attribute name.
You can process an attribute in the same way as an element
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