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
3.72Mb 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

Minor in Possession by J. A. Jance
The Last Nude by Avery, Ellis
Impact by Tiffinie Helmer
Seeing You by Dakota Flint
The Storm Giants by Pearce Hansen
Something Light by Margery Sharp
Lost in Love by Susane Colasanti