Table 1
Some equivalences between CSS2 selectors and XSL patterns.
CSS2 SELECTOR | XSL PATTERN | DEFINITION |
title | title | Any title |
doc>title | doc/title | A document title (title is a direct child of doc) |
doc title | chapter/title | A title that is any decsendant of doc |
em[role] | em[role] | An em element with a role attribute |
em[role="bold"] | em[role="bold"] | An em element when role is "bold" |
listitem:first-child | listiem [first-of-type()] | The first item of a list |
n/a | listitem [last-of-type()] | The last item of a list |
n/a | equation [child(title)] | An equation that has a title |
corpauthor + author | n/a | An author preceded by a corpauthor |