This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Why isn't with-param allowed within xsl:apply-imports?


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]