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.02Mb 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
12.02Mb size Format: txt, pdf, ePub
ads

Other books

Rebecca Joyce by The Sheriff's Jailbirds
A String in the Harp by Bond, Nancy
Hold on Tight by Deborah Smith
Thrive by Krista Ritchie, Becca Ritchie
Dragon's Ring by Dave Freer
Illusion by Ashley Beale
Jagged Hearts by Lacey Thorn
Emily's Story by McClain, D'Elen
Fake by Francine Pascal