|
Subject: Re: [xsl] Keeping the Current Context From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 27 Mar 2003 16:40:04 GMT |
> Question:
> How can I loop through an external file while keeping the current
> context?
various ways, all variants on
<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">
<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, Niko Matsakis | Thread | RE: [xsl] Keeping the Current Conte, Peter Eschenbrenner |
| Re: [xsl] Keeping the Current Conte, Niko Matsakis | Date | Re: [xsl] Keeping the Current Conte, David Carlisle |
| Month |