Re: [xsl] Referencing original root when using document function

Subject: Re: [xsl] Referencing original root when using document function
From: Oleg Tkachenko <olegt@xxxxxxxxxxxxx>
Date: Tue, 01 Apr 2003 14:45:01 +0200
Cams Ismael wrote:

<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 ?

Save original root into a variable before for-eaching. -- Oleg Tkachenko http://www.tkachenko.com/blog Multiconn Technologies, Israel


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



Current Thread