This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: xsl:variable with expr
- From: "sanghamitra das" <sanghamitra dot das at itreya dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 9 Jul 2002 10:39:47 +0530
- Subject: RE: [xsl] xsl:variable with expr
- Reply-to: xsl-list at lists dot mulberrytech dot com
Thanks peter ,
Actually I was trying to test the given code ,which I found in the link..
http://www.dpawson.co.uk/xsl/sect2/N5280.html
Regards
Sanghamitra
-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Peter Davis
Sent: Tuesday, July 09, 2002 10:16 AM
To: xsl-list@lists.mulberrytech.com
Subject: Re: [xsl] xsl:variable with expr
On Monday 08 July 2002 21:27, sanghamitra das wrote:
> XSLT Error (javax.xml.transform.TransformerConfigurationException): "expr"
> xsl:variable element!
> Can anu tell me the reason.
> <xsl:variable name="DebugOpts" expr="abc123"/>
Yes, the reason is painfully obvious. This is not valid XSLT.
You probably want:
<xsl:variable name="DebugOpts" select="'abc123'"/>
which will assign $DebugOpts to the string "abc123". Note the use of
"select"
instead of "expr".
--
Peter Davis
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list