Subject: Re: [xsl] Keeping the Current Context From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 27 Mar 2003 16:42:11 GMT |
sorry, blame Jeni, I used x as the variable name in my example but thought she's moan at me so changed it, but I only changed one of them and I'd used it in two places... <xsl:template match="columns/column"> <xsl:variable name="thiscol" select="."/> <xsl:for-each select="document('foo.xml')/a/b/rulename"> <xsl:variable name="thisrule" select="."/> <xsl:for-each select="$x"> ^^ should be $thiscol (to get back to the original context) <xsl:call-template name="getRules"> <xsl:with-param name="ruleName" select="$thisrule" /> </xsl:call-template> </xsl:for-each> </xsl:for-each> </xsl:template> 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 -> |
---|---|---|
Re: [xsl] Keeping the Current Conte, David Carlisle | Thread | [xsl] xpath question, florian |
Re: [xsl] Keeping the Current Conte, David Carlisle | Date | RE: [xsl] Keeping the Current Conte, Peter Eschenbrenner |
Month |