xsl-list
[Top] [All Lists]

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

2007-06-30 06:55:07
Which of course is a pointer rather than a deep copy (which was my other idea). Excellent.

Thanks again.
Tristan

----- Original Message ----- From: "Michael Kay" <mike(_at_)saxonica(_dot_)com>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Saturday, June 30, 2007 11:44 AM
Subject: RE: [xsl] Context node is within a variable - how to get back?


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/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>