Element Tests (3)

  • element(ElementName) matches an element named ElementName. If there is a top-level element declaration for ElementName, then the type of the element must also match.

element(html:p)” matches (some) HTML “p” elements. (Compare with “html:p” which always matches all of them.)