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
7.08Mb size Format: txt, pdf, ePub

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()
.

Other books

Hidden Dragons by Bianca D'Arc
Love Under Three Titans by Cara Covington
Crackback by John Coy
The Select by F. Paul Wilson
The Crash of Hennington by Patrick Ness
The Drowner by John D. MacDonald