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

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

Summary

This chapter covered all the various kinds of expressions in the XPath language that are designed to manipulate general sequences, specifically:

  • The
    ,
    operator, which appends two sequences
  • The
    to
    operator, which forms a sequence of ascending integers
  • Filter expressions, which are used to find those items in a sequence that satisfy some predicate
  • The
    for
    expression, which applies an expression to every item in a sequence and returns the results, as a new sequence
  • Simple mapping expressions, which apply the
    /
    operator to atomic values
  • The
    some
    and
    every
    expressions, which test whether a condition is true for some value (or every value) in an input sequence, returning a boolean result

Don't forget that these are not the only constructs available for manipulating sequences. For sequences of nodes, path expressions can be used, as well as the
union
,
intersect
, and
except
operators, as discussed in Chapter 9. And in Chapter 13 you will find descriptions of all the functions in the standard XPath library, including many functions that are useful for operating on sequences, for example,
count()
,
deep-equal()
,
distinct-values()
,
empty()
,
exists()
,
index-of()
,
insert-before()
,
remove()
,
subsequence()
, and
unordered()
.

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

Other books

The Prefect by Alastair Reynolds
Black Star Nairobi by Mukoma wa Ngugi
The Roy Stories by Barry Gifford
Come To Me by Thompson, LaVerne
Water from My Heart by Charles Martin
Sweet Agony by Charlotte Stein
Darconville's Cat by Alexander Theroux
Seis aciertos y un cadáver by Francesc Montaner