More Complex Patterns

section/*/note

Matches <note> elements that have <section> grandparents.

stockquote[@symbol]

Matches <stockquote> elements that have a "symbol" attribute

stockquote[@symbol="XXXX"]

Matches <stockquote> elements that have a "symbol" attribute with the value "XXXX"

emphasis|strong

Matches <emphasis> or <strong> elements