[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Chen Yi
_________________________________________________________________
OmSCJ@=gIOWn4s5D5gWSSJ<~O5M3!* MSN Hotmail!# http://www.hotmail.com
RE: [xsl] how to use the xsl:param in the output html script function
Subject: RE: [xsl] how to use the xsl:param in the output html script function From: "Chen Yi" <chen_yi36@xxxxxxxxxxx> Date: Thu, 20 May 2004 16:05:26 +0800 |
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>function
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: [xsl] how to use the xsl:param in the output html script
Date: Thu, 20 May 2004 09:54:41 +0300Templates, see <http://localhost/TR/xslt/#attribute-value-templates>. Use xsl:value-of to create a text node, see <http://localhost/TR/xslt/#value-of>.
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
Cheers,
Jarno
_________________________________________________________________
OmSCJ@=gIOWn4s5D5gWSSJ<~O5M3!* MSN Hotmail!# http://www.hotmail.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] how to use the xsl:param , Chen Yi | Thread | [xsl] XSLT/XSL-FO Seminar (29 July , Zoë Briault |
RE: [xsl] Generate Yahoo-like direc, M. David Peterson | Date | [xsl] saxon command line error "2>e, Mike Ferrando |
Month |