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

BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition
4Mb size Format: txt, pdf, ePub
TextTest
text
(
)
PITest
processing-instruction
(
(NCName | StringLiteral)?
)

If you're reading the book sequentially, you may have a sense of
déjà vu
about these rules. We met them before in Chapter 9, on page 616, where they appear as part of the syntax for a
NodeTest
in a path expression. Conveniently, the syntax for testing the type of a node in an
instance
of
or
treat as
expression is exactly the same as the syntax for saying what kinds of node you want to select in a step of a path expression. What's more, because the syntax of XSLT match patterns is defined in terms of path expressions, you can use the same constructs when defining an XSLT template rule.

Other books

Camp Payback by J. K. Rock
Beekeeping for Beginners by Laurie R. King
Private Showing - by Lexi Dubois
The Queen of Patpong by Timothy Hallinan
Betrayed by Christopher Dinsdale
Trapped by Laurie Halse Anderson
LEGACY LOST by Rachel Eastwood
Love Letters From a Duke by Elizabeth Boyle