Subject: Re: Repeating Code
From: Nicholas Orr <nick@xxxxxxxxxxx>
Date: Tue, 11 Oct 2005 08:17:51 +1000
|
On 10/10/2005, at 8:51 PM, Michael Kay wrote:
One workaround is to use apply-templates with a mode. Instead of
<xsl:call-template name="NNN">
<xsl:with-param name="node" select="x"/>
</xsl:call-template>
<xsl:template name="NNN">
<xsl:with-param name="node"/>
write
<xsl:apply-templates select="x" mode="MMM"/>
<xsl:template match="*" mode="MMM">
I'm sure this was suggested way back when in this thread...
I don't think it was, so thanks, I will give that a try.
Also for anyone interested, it made negligible difference to the
speed to have 28 items as templates instead of listed individually.
Cheers,
Nick
| Current Thread |
|
Michael Kay - 8 Oct 2005 08:55:46 -0000
omprakash . v - 8 Oct 2005 06:10:28 -0000
Nicholas Orr - 10 Oct 2005 22:18:05 -0000 <=
|
|