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

Bear Again (Second Chance Shifters 3) by Meredith Clarke, Ally Summers
MagicalMistakes by Victoria Davies
Carter's Treasure by Amy Gregory
Linked by Heather Bowhay
The Enemy's Lair by Max Chase
Passions of a Wicked Earl by Heath, Lorraine
Love & Mrs. Sargent by Patrick Dennis
The Rancher's First Love by Brenda Minton