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

BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition
8.74Mb size Format: txt, pdf, ePub
ads
TextTest
text
(
)
AnyKindTest
node
(
)

The constructs
ElementTest
and
AttributeTest
are used primarily to test the schema-defined type of a node. These constructs are explained together with other type-related constructs on page 672 in Chapter 11.

Note that the names
comment
,
text
, and so on cannot be used as function names, but apart from this, they are not reserved words. It is quite possible to have elements or attributes called
text
or
node
in your source XML document, and therefore you can use
text
or
node
as ordinary names in XPath. This is why the names are flagged in a
KindTest
by the following parentheses, for example,
text()
. The syntax rules are written so that the keyword and the following left parenthesis are treated as a compound symbol by the XPath parser, which in effect means that the parser does a look-ahead for the

BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition
8.74Mb size Format: txt, pdf, ePub
ads

Other books

May Bird Among the Stars by Jodi Lynn Anderson, Peter Ferguson, Sammy Yuen Jr., Christopher Grassi
Key Lime Pie Murder by Fluke, Joanne
The Lantern Bearers (book III) by Rosemary Sutcliff, Charles Keeping
What a Man's Gotta Do by Karen Templeton
A Summer Life by Gary Soto
22 Tricky Twenty-Two by Janet Evanovich
Daring by Jillian Hunter
Sara's Surprise by Deborah Smith
City of Singles by Bryan, Jason