[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Remote source document

Subject: Re: Remote source document
From: "Perry Molendijk" <perry@xxxxxxxxxxxxxx>
Date: Wed, 25 Jul 2001 18:33:05 +0800
Re:  Remote source document
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@xxxxxxxxxxxxxxxxxxxxxx
Sent: Wednesday, July 25, 2001 5:13 PM
Subject: RE:  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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.