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

Re: Shorthand.

Subject: Re: Shorthand.
From: Steve <subsume@xxxxxxxxx>
Date: Wed, 25 Jul 2007 14:23:00 -0400
Re:  Shorthand.
I'm using MSXML

Example:

xsl---
<xsl:template name="a">
  <xsl:param name="href" />
  <xsl:param name="text" />
  <a href="{$href}" onClick="showData('{$href}');return
false;"><xsl:value-of select="$text" /></a>
</xsl:template>
<xsl:template match="/">
  <xsl:call-template name="a">
      <xsl:with-param name="href" select="'process.asp'" />
      <xsl:with-param name="text" select="'Click me, baby'" />
  </xsl:call-template>
</xsl:template>
--
output----
<a href="process.asp" onClick="showData('process.asp');return
false;">Click me, baby</a>
------

I have no obstacles except its length. exslt:function seems like it
would suffice. Reading up now.

-S


On 7/25/07, Abel Braaksma <abel.online@xxxxxxxxx> wrote:
Could you provide a short working example that exactly shows what it
does in your current situation, an example of the source, plus a
specification of the processor and where you use it (browser based, PI,
commandline, from java etc) and if you provide any parameters externally?

Now we are only guessing on how to optimize your code...

Steve wrote:
> No, not context. Passed manually...

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.