From 6df49c1be9cbdb25c231672f2dc30ec0da1eb9f6 Mon Sep 17 00:00:00 2001
From: Michael Kay This means that an accumulator that needs access to the typed value or string value of an element
can get this directly with a rule that matches the element, avoiding the need
- to write rules that match the element's text node children.
+ to write rules that match the element’s text node children.
For example, to capture a copy of the most recent and subsequent processing wishing to copy the most recent Without the At the end of processing, the map containing all the terms and their definitions (including
- the internal markup) is available as the value
- of Suppose that the input XML document contains an element h2
element in a document,
the following accumulator might be declared:h2
element into the result
tree can simply use <xsl:copy-of select="accumulator-before('most-recent-h2')"/>
.capture="yes"
attribute, this accumulator would be rejected
+ as non-streamable, because the select
expression on the accumulator rule
+ is consuming.accumulator-before('glossary-terms')
, and this can be sorted and rendered in the usual way.<glossary/>
marking
+ the point where the glossary is to be inserted. The glossary can then be generated
+ using a template rule such as:Glossary
+
+
+]]>select
attribute or the contained
The rule has capture="yes"
.
The rule has capture="yes"
and the select
attribute or the contained
+