This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Remote source document
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] Remote source document
- From: "Perry Molendijk" <perry at inflexions dot com>
- Date: Wed, 25 Jul 2001 18:33:05 +0800
- References: <002d01c114f0$a4137650$91363c3e@PCUKMKA>
- Reply-To: xsl-list at lists dot mulberrytech dot com
There is a good article / tutorial that shows the use of this procedure at
http://www.xml.com/pub/a/2000/07/26/xslt/xsltstyle.html
Perry Molendijk
----- Original Message -----
From: Michael Kay
To: xsl-list@lists.mulberrytech.com
Sent: Wednesday, July 25, 2001 5:13 PM
Subject: RE: [xsl] Remote source document
> 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
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list