Subject: Why isn't with-param allowed within xsl:apply-imports?
From: Andrew Kimball <akimball@xxxxxxxxxxxxx>
Date: Tue, 14 Mar 2000 16:59:42 -0800
|
If xsl:apply-imports is used to delegate to a "hidden" imported template,
why shouldn't the user be able to pass arguments to this template?
Example:
<!-- This is the imported template -->
<xsl:template match="example">
<xsl:param name="text"/>
<pre><xsl:value-of select="$text"/></pre>
</xsl:template>
<!-- This is the overriding template -->
<xsl:template match="example">
<xsl:param name="text"/>
<div style="border: solid red">
<xsl:apply-imports>
<xsl:with-param name="text" select="$text"/>
</xsl:apply-imports>
</div>
</xsl:template>
It seems quite useful to be able to override a template with parameters.
Unfortunately, the spec states that xsl:apply-imports has no content. Any
idea why?
~Andy Kimball
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|