New Node Tests for (Schema-derived) “Types”
Many new ones, here are a few element node tests to
illustrate
element()
|
Matches any element node |
element(title)
|
Matches any element node named
title (any type at all)
|
element (title, caption)
|
Matches any element node whose name is
title and whose (schema) type is “
caption
” (or a type derived from “
caption
”). User defined type.
|
element (*, caption)
|
Matches any element node whose
(schema) type is “
caption
” (or a type derived from “
caption
”) User defined type.
|
schema-element(title)
|
Matches any element node named
title
or in the substitution group headed by
title and (loosely) whose type is
the same as title's type (or derived from
it)
|