[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?
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|