[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Repeating Code

Subject: Re: Repeating Code
From: Nicholas Orr <nick@xxxxxxxxxxx>
Date: Tue, 11 Oct 2005 08:17:51 +1000
Re:  Repeating Code
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:template name="NNN">
  <xsl:with-param name="node"/>


<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.


Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.