|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Using document() and getting back to the original
> -----Original Message----- > From: Dan Vint [mailto:dvint@xxxxxxxxx] > > > I know how to start a style sheet with a new document using the > document() function, but how do you get back to the document that > was feed in on the command line? > Hi, Errrm... this should be always in scope for the stylesheet, so I don't really see why you would need to 'open' it again... If you want to make sure you don't lose track, you can always add a global variable: <xsl:variable name="vdoc" select="/" /> to your stylesheet. an expression like '$vdoc/root/node' will then always refer to '/root/node' from your 'original input document', and the following: <xsl:copy-of select="$vdoc" /> will insert a copy of the source document into the result tree. Hope this helps! Cheers, Andreas
|
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








