Match Patterns (Locating Elements) One critical capability of a stylesheet language is to locate source elements to be styled. CSS, for example, does this with “selectors.” FOSIs do it with “e-i-c’s”, elements in context. XSLT does it with “match patterns” …
Read More »XSL_Match_Pattern
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> …
Read More »Node Tests & Axis Specifiers
Node Tests & Axis Specifiers Node tests are most frequently element names, but other node tests are possible: name Matches <name> element nodes * Matches any element node namespace:name Matches <name> element nodes in the …
Read More »