Subject: Re: [xsl] Context node is within a variable - how to get back?|
From: "Tristan Stevens" <tristanstevens@xxxxxxxxxxx>
Date: Sat, 30 Jun 2007 14:54:39 +0100
Thanks again. Tristan
This doesn't work because when I attempt to apply-templates to /Root/Body, the context appears to be limited to the variable - how can I get back to the document?
Have a global variable pointing to the principal source document
<xsl:variable name="root" select="/"/>
so you can always refer to it.
Michael Kay http://www.saxonica.com/