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

RE: xsl: variable problem

Subject: RE: xsl: variable problem
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Wed, 23 May 2001 11:05:52 +0100
xsl variable expecting
> Could you please tell me the problem with my xsl.  When I passed the
> variable to my javascript function, it is not passing whatever I'm
> expecting.
>
> <xsl:value-of select="user:calcTot({$credAmt})"/>
>
This is a syntax error, it shouldn't execute at all. Curly braces are not
allowed within an XPath expression.

In general when calling JavaScript you need to take care to pass the right
type of value for the Javascript function. If it's expecting a node-set,
pass it a node-set; if it's expecting a string, use the XPath string()
function to convert the value to a string.

Mike Kay
Software AG


 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.