xsl-list
[Top] [All Lists]

Re: Referencing original root when using document function

2003-04-01 05:45:01
Cams Ismael wrote:

<xsl:for-each select="document('')/*/par:paramfields/par:paramfield">
        <xsl:variable name="value" select="./@field"/>
        <xsl:apply-templates select="/traps/trap[(_at_)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