[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: how to refer to original source tree?


Subject: RE: how to refer to original source tree?
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Wed, 1 Sep 1999 10:19:34 +0100

> Given that one can refer to an alternate source document with 
> the document()
> function, how does one go about referring to the original 
> source tree when
> not in that context? 

If you're using document() in your stylesheet, it's probably a good idea to
have a global variable of the form:

<xsl:variable name="topdoc" select="/"/>

Then you can always refer to the root of your top-level document using the
variable reference $topdoc.

Mike Kay


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



Current Thread