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