[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] Remote source document
Subject: Re: [xsl] Remote source document From: Oliver Becker <obecker@xxxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 25 Jul 2001 09:42:03 +0200 (MET DST) |
Hi, > 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? Save the original root node in a variable: <xsl:variable name="root" select="/" /> Then, inside xsl:for-each (which isn't really a loop), do <xsl:for-each select="document(...)/..."> ... <xsl:value-of select="$root/..." /> ... </xsl:for-each> Cheers, Oliver /-------------------------------------------------------------------\ | ob|do Dipl.Inf. Oliver Becker | | --+-- E-Mail: obecker@xxxxxxxxxxxxxxxxxxxxxxx | | op|qo WWW: http://www.informatik.hu-berlin.de/~obecker | \-------------------------------------------------------------------/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Remote source document, Perry Molendijk | Thread | RE: [xsl] Remote source document, Rene de Vries |
Re: [xsl] Passing local variable fr, Oliver Becker | Date | RE: [xsl] weird behavior with last(, Michael Kay |
Month |