xsl-list
[Top] [All Lists]

Re: [xsl] Shorthand.

2007-07-25 10:28:42
Something like this in XSL 1.0 would be great. Anyone?


On 7/25/07, Angela Williams 
<Angela(_dot_)Williams(_at_)the401kcompany(_dot_)com> wrote:
(Not tested)
<xsl:function name="my:ajax-link">
  <xsl:param name="href" select="'x'"/>
  <xsl:param name="text" select="'y'"/>
  <a href="{$href}" onClick="showData('{$href}');return
false;"><xsl:value-of select="$text" /></a>

</xsl:function>

<value-of select="my:ajax-link($href, $text)"/>

I'm not very familiar with the ins and outs of 1.0 , but I don't know of
a less verbose way to call a named template in either version....

--~------------------------------------------------------------------
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>