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

RE: xsl:variable with expr

Subject: RE: xsl:variable with expr
From: "Vasu Chakkera" <vasucv@xxxxxxxxxxx>
Date: Tue, 09 Jul 2002 08:54:31 +0000
xsl variable expr
sangamitra,
I reckon you use some good XSLT IDEs Like Xselerator or XML SPY..your are less likely to do such mistakes with a good IDE.
Vasu


From: "sanghamitra das" <sanghamitra.das@xxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE:  xsl:variable with expr
Date: Tue, 9 Jul 2002 10:39:47 +0530

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@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Peter Davis Sent: Tuesday, July 09, 2002 10:16 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: 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




_________________________________________________________________
Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



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.