[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: xsl: variable problem
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|