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

RE: problems passing a node value to a jscript functio

Subject: RE: problems passing a node value to a jscript function...
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Tue, 2 Jan 2001 11:38:23 -0000
jscript passing string
> I am attempting to pass (through an xsl file) the value of a 
> node (its a
> numerical date value of the type yyyymmdd) to a jscript function.  The
> function receives an object (used typeof function to verify 
> that), whose
> xml, text, nodevalue properties return the string 'undefined' 
> (but when I
> use <xsl:value-of I do get a value in the resulting HTML document).

It would probably be simpler to use string() in the XPath call to the
extension function so that the JavaScript only has to deal with a string,
not a node-set.

Remember that the XPath concept of the "string-value of a node" has no
direct equivalent in the DOM.

Mike Kay 

 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.