[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

Subject: RE: Using document() and getting back to the original doc
From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
Date: Mon, 22 Mar 2004 20:13:07 +0100
gett
> -----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

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.