RE: [xsl] Remote source document

Subject: RE: [xsl] Remote source document
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Wed, 25 Jul 2001 10:13:00 +0100
> I have a problem with a remote ducument. I use 'for-each' to
> itterate through som elements in a remote document using
> 'document()'. However beeing in the loop i seem to loose
> scope of the original document. How do i acces elements in
> the original source document within the loop?

When using multiple documents it's always a good idea to declare a global
variable

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

So you can always use it to refer to the principal source document.

Mike Kay
Software AG


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


Current Thread