This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Proposed syntactic sugar: xsl:propagate-param
- To: xsl-editors at w3 dot org
- Subject: [xsl] Proposed syntactic sugar: xsl:propagate-param
- From: Miloslav Nic <nicmila at idoox dot com>
- Date: Thu, 15 Mar 2001 07:21:50 -0100
- CC: "xsl-list at lists dot mulberrytech dot com" <xsl-list at lists dot mulberrytech dot com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Recently, I have written a few stylesheets mostly consisting of
constructs like:
<xsl:template match="*" mode="xxx">
<xsl:param name="a"/>
<xsl:param name="b"/>
<xsl:param name="b"/>
...
...
<xsl:apply-templates>
<xsl:with-param name="a" select="$a"/>
<xsl:with-param name="b" select="$b"/>
<xsl:with-param name="c" select="$c"/>
...
...
...
</xsl:apply-templates>
...
...
</xsl:template>
I would find really useful if there was a way to propagate the params
like:
<xsl:template match="*" mode="xxx">
<xsl:apply-templates>
<xsl:propagate-param/>
<xsl:with-param name="c">XXXXXXXX</xsl:with-param>
</xsl:apply-templates>
</xsl:template>
xsl:propagate-param would sent all params which given template accepted
to the template
specified by the xsl:apply-templates or xsl:call-template.
It would be possible to override some of the values with explicit
xsl:with-param
</xsl:template>
--
******************************************
<firstName> Miloslav </firstName>
<surname> Nic </surname>
<mail> nicmila@idoox.com </mail>
<support> http://www.zvon.org </support>
<zvonMailingList>
http://www.zvon.org/index.php?nav_id=4
</zvonMailingList>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list