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

with-param name attribute value template (v3)

Subject: with-param name attribute value template (v3)
From: Andre Cusson <ac@xxxxxxxxxxxxx>
Date: Sun, 27 Oct 2013 01:18:40 -0400
 with-param name attribute value template (v3)
Hi,

In a directly and indirectly recursive stylesheet, with a series of tunnel parameters being pushed and read to/from the tunnels as the computation progresses, when new values need to be passed for some (a subset) of the tunnel parameters, typically because only those parameters have new values for the following iterations/recursions, what would be the recommended pattern to use? Can it be possible not to have to access the parameters whose values are not used nor referred to in the current template iteration/recursion and having to pass the complete series of parameters again, and, in fact nulling the use of tunnels?

It seems that it would be useful to make the name attribute of the xsl:with-param xslt element, an /attribute value template/, like for the xsl:attribute name attribute, so that passed parameter names can be computed, as, for example, in:

<xsl:call-template name="some-template">
<xsl:with-param name="param1" select="some value" tunnel="yes"/>
<xsl:for-each select="$modified-param-values-as attributes-element/@*[local-name(.) = ($tunnel-parameter-name-list) and normalize-space(.)">
<xsl:with-param name="{local-name(.)}" select="normalize-space(.)" tunnel="yes"/>
</xsl:for-each>
/xsl:call-template>


Of course, this becomes further acute as the number of running tunnel parameters increases, as well as according to the recursion flow sophistication.

Regards,
ac

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.