[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Can I access elements in the output tree?

Subject: RE: Can I access elements in the output tree?
From: "Carlos Sanchez" <carlos@xxxxxxxx>
Date: Fri, 27 Oct 2000 08:37:17 -0500
carlos sanchez ou
does Xalan supports the node-set function?

Carlos

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Kay Michael
Sent: Friday, October 27, 2000 6:11 AM
To: 'xsl-list@xxxxxxxxxxxxxxxx'
Subject: RE: Can I access elements in the output tree?


> 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:

<xsl:template match="/">
<xsl:variable name="xxx">
   ... normal processing ...
</xsl:variable>
<xsl:apply-templates select="xx:node-set($xxx)" mode="phase2"/>
<xsl:copy-of select="$xxx"/>
</xsl:template>

This has the effect you describe.

Mike Kay 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.