XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition (510 page)

BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition
3.7Mb size Format: txt, pdf, ePub
AnyKindTest
node
(
)
NodeName
QName|
*
TypeName
QName

A
KindTest
is used to define the kind of node that is required and, optionally, information about its schema-defined type.

Let's take the simple cases first:

  • text()
    matches any text node.
  • comment()
    matches any comment node.
  • node()
    matches any node whatsoever (but remember that on its own, it means
    child::node()
    , which searches only for nodes that are children of something).
  • processing-instruction()
    matches any processing instruction node.
  • processing-instruction(NCName)
    matches any processing instruction node with the given name (the name of a processing instruction is referred to in the XML Specification as the
    PITarget
    ). For compatibility with XPath 1.0, the
    NCName
    may be written in quotes as a
    StringLiteral
    .
  • document-node()
    matches any document node.

Other books

Summertime Death by Mons Kallentoft
A Darkness Descending by Christobel Kent
Chasing the Heiress by Rachael Miles
New Species 11 True by Laurann Dohner
Midnight in Venice by Meadow Taylor
Mission to Marathon by Geoffrey Trease
What You Wish For by Kerry Reichs
The 22 Letters by King, Clive; Kennedy, Richard;
Must the Maiden Die by Miriam Grace Monfredo