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

RE: [xsl] Context node is within a variable - how to get back?


Subject: RE: [xsl] Context node is within a variable - how to get back?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sat, 30 Jun 2007 11:44:10 +0100

> 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/


Current Thread
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor