Subject: [xsl] Referencing original root when using document function From: Cams Ismael <Ismael.Cams@xxxxxxxxxxx> Date: Tue, 1 Apr 2003 13:31:45 +0200 |
Hello all, I have a stylesheet in which a lookup table is defined e.g. <par:paramfields> <par:paramfield value="value1"/> <par:paramfield value="value2"/> </par:paramfields> I walk through each of these values: <xsl:for-each select="document('')/*/par:paramfields/par:paramfield"/> For every value I want make a transformation for which I use data of the original xml document. So I need e.g. <xsl:for-each select="document('')/*/par:paramfields/par:paramfield"> <xsl:variable name="value" select="./@field"/> <xsl:apply-templates select="/traps/trap[@type=$value]"/> </xsl:for-each> However this doesn't work. How to I indicate in the Xpath expression, that I want to use my original document again ? Kind regards, Ismaël XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] performance when using do, Rod Humphris - FLPTN | Thread | Re: [xsl] Referencing original root, David Carlisle |
Re: [xsl] performance when using do, Oleg Tkachenko | Date | RE: [xsl] Referencing original root, Jarno . Elovirta |
Month |