XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition Read Online Free Page B

XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition
Pages:
Go to
stylesheet.
352
Formatting a List of Names
This example shows the use of to produce punctuation between the items in a list, where the punctuation depends on the position of the item within the list.
356
Precedence of Variables
This example shows how an importing stylesheet module can declare global variables with the same names as variables within the imported module, and how the variables in the importing module take precedence.
364
Precedence of Template Rules
This example shows how an importing stylesheet module can declare template rules that override template rules within the imported module. It also shows the use of in an overriding template rule, to invoke the functionality of the template rule that was overridden.
365
Using with Named Attribute Sets
This example illustrates the use of to incorporate declarations (in this case, attribute set declarations) from one stylesheet module into another.
375
Multivalued non-Unique Keys
This example shows the use of an definition in which several elements can have the same key value, and a single element can have multiple key values. Specifically, this situation arises when books are indexed by the names of their authors.
381
Generating a Stylesheet using
This example shows the way in which can be used when writing a stylesheet whose task is to generate (or modify) another XSLT stylesheet.
398
Identifying Location of Text within a Document
This example is adapted from the stylesheet used to produce the errata for the XSLT and XPath specifications. It searches the published document for a given phrase, and then identifies all the places where the phrase occurs, using to generate a description of the location of the text using a phrase such as “first numbered list, second item, third paragraph”.
413
Numbering the Lines of a Poem
This stylesheet uses to selectively number the lines of a poem.
417
Using with a Default Value
This is an example of a named template that defines a default value for an optional template parameter. The stylesheet can be run against any source document, and displays the depth of nesting of the nodes in that document.
432
Tunnel Parameters
This example shows how tunnel parameters can be useful when customizing an existing stylesheet, for reducing the number of rules in the existing stylesheet that need to be modified. The specific example shows how to produce a modified rendition of a Shakespeare play in which the lines for each actor are highlighted.
433
Creating Multiple Output Files
This stylesheet uses the instruction to split a source document into multiple result documents. In this case, each stanza of a poem ends up in a separate document.
451
Sorting on the Result of a Calculation
This example uses to sort items on a value that does not appear explicitly in either the source or result documents, but is computed. (It produces a sales report for different flavors of jam).
463
Template Rules
This is an illustration of the classic use of template rules to control the rendition of narrative text, in this case, reviews of classical concerts.
488
Using Modes
This stylesheet modifies the previous example showing how modes can be used to process the same source data in more than one way, using different template rules. It illustrates this by including at the end of each concert review a summary of the works performed in the concert.
490
Using a Variable for Context-Sensitive Values
This stylesheet (used to publish a series of opera performances) shows how a variable can be used to hold on to information that depends on the context, for use when the context has changed.
508
A Multiphase Transformation
An example of a stylesheet that uses variables to capture the result of one phase of processing, so that further processing can be carried out before delivering

Readers choose