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

RE: how to use the xsl:param in the output html script

Subject: RE: how to use the xsl:param in the output html script function
From: "Chen Yi" <chen_yi36@xxxxxxxxxxx>
Date: Thu, 20 May 2004 15:44:33 +0800
how to use xsl param
Thank you for your advice.
I update my code as follows.

<xsl:param name="VariableNum" select="count(/Variable)"/>
  <script>
       <xsl:text> var Variable0 = new Array( </xsl:text>
       <xsl:value-of select="$VariableNum"/>
       <xsl:text> );</xsl:text>
  </script>

It passed the Xalan compiling.
I posted code here for other's reference.


Chen Yi



From: <Jarno.Elovirta@xxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: how to use the xsl:param in the output html script
function
Date: Thu, 20 May 2004 09:54:41 +0300

Hi,

>   I want to pass the xsl:param value into the output html
> script function.
>   The Code as follows.
>
>   <xsl:param name="VariableNum" select="count(/Variable)"/>
>   <script>
>     var Variable0 = new Array({$VariableNum});
>   </script>
>
>   It failed.
>   How can I do?
>   Thanks in advance.

The curly braces act as expression delimiters only in Attribute Value
Templates, see <http://localhost/TR/xslt/#attribute-value-templates>. Use xsl:value-of to create a text node, see <http://localhost/TR/xslt/#value-of>.

Cheers,


Jarno

_________________________________________________________________
Cb7QOBTX MSN Explorer: http://explorer.msn.com/lccn/


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.