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

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

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
apply imports with param
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


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.