Subject: Re: [xsl] Shorthand. From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Wed, 25 Jul 2007 19:56:42 +0200 |
If you use this browser based, you cannot rely on EXSLT extensions like exslt:function. If you use it server side, you can lookup the documentation of your processor whether (and how) it supports exslt:function or not.
Something like this in XSL 1.0 would be great. Anyone?
On 7/25/07, Angela Williams <Angela.Williams@xxxxxxxxxxxxxxxxxx> 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....
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Shorthand., Steve | Thread | Re: [xsl] Shorthand., Steve |
Re: [xsl] Shorthand., Steve | Date | Re: [xsl] Shorthand., Abel Braaksma |
Month |