Subject: Re: [xsl] Referencing original root when using document function From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 1 Apr 2003 13:03:05 +0100 |
I'm sure this is in the faq and has certainly been answered in the last day or so on this list but... <xsl:variable name="here" select="."/> <xsl:variable name="root" select="."/> <xsl:for-each select="document('')/*/par:paramfields/par:paramfield"> <xsl:variable name="value" select="$here/@field"/> <xsl:apply-templates select="$root/traps/trap[@type=$value]"/> </xsl:for-each> or, if you prefer <xsl:variable name="here" select="."/> <xsl:for-each select="document('')/*/par:paramfields/par:paramfield"> <xsl:for-each select="$here"> <xsl:variable name="value" select="@field"/> <xsl:apply-templates select="/traps/trap[@type=$value]"/> </xsl:for-each> </xsl:for-each> David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Referencing original root whe, Cams Ismael | Thread | Re: [xsl] Referencing original root, Oleg Tkachenko |
RE: [xsl] Referencing original root, Cams Ismael | Date | RE: [xsl] performance when using do, Michael Kay |
Month |