|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] restoring document context
I'm having a problem with my document context switching from the XML file I'm processing to a node-set contained in the XSL to back to the XML file. I don't know how to get back to the XML file once I switch to the XSL node-set. Here's roughly what my XSL looks like:
<xsl:variable name="unique-division-list">
<division>
<div><name>a</name></div>
<div><name>b</name></div>
<div><name>c</name></div>
<div><name>d</name></div>
</division>
</xsl:variable>
...
<xsl:for-each select="$unique-division-list/division/div">
<xsl:sort select="name"/>
<xsl:variable name="division" select="name"/>
<!-- code to process this internal node here -->
<xsl:for-each select="//CDRS/TOLL_CDR">
<!-- code to process the nodes in the XML file -->
</xsl:for-each>
</xsl:for-each>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








