[XSL-LIST Mailing List Archive Home]
RE: Can I access elements in the output tree?
Subject: RE: Can I access elements in the output tree?|
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Fri, 27 Oct 2000 12:11:17 +0100
> Would it be possible to insert elements in the output tree
> and subsequently access them? If so, would there be any restrictions?
You can create a result tree fragment and then access it using the
node-set() extension function that comes with most popular XSLT processors.
You can't access data once it's written to the final result tree, though.
(There's a good reason for this, most processors don't actually construct
the result tree in memory, they serialize each node as soon as it is
written). But that's not a restriction, you write:
... normal processing ...
<xsl:apply-templates select="xx:node-set($xxx)" mode="phase2"/>
This has the effect you describe.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list