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

Re: Shorthand.

Subject: Re: Shorthand.
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Wed, 25 Jul 2007 19:56:42 +0200
Re:  Shorthand.
It seems that my messages sometimes come through slowly, I don't know why, but it said the following:

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.

hope that answers your question (and of course, consider the other options without params proposed by most of the repliers if exslt is not for you).


Cheers,

--Abel Braaksma




Steve wrote:
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

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.