xsl-list
[Top] [All Lists]

[xsl] Shorthand.

2007-07-25 09:41:41
Hey there, I have a template for creating ajax links:

<xsl:template name="a">
        <xsl:with-param name="href" />
        <xsl:with-param name="text" />
        <a href="{$href}" onClick="showData('{$href}');return
false;"><xsl:value-of select="$text" /></a>
</xsl:template>

is there some shorter way to use this (XSL 1.0) template than...

<xsl:call-template name="a">
  <xs:param name="href" select="'x'"/>
  <xs:param name="text" select="'y'"/>
</xsl:call-template>

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>