This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: problems passing a node value to a jscript function...
- To: tmastrogiannis at screeningonline dot com
- Subject: [xsl] Re: problems passing a node value to a jscript function...
- From: Dimitre Novatchev <dnovatchev at yahoo dot com>
- Date: Wed, 27 Dec 2000 11:27:11 -0800 (PST)
- Cc: xsl-list at lists dot mulberrytech dot com
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi Thanasis,
The value passed to your jscript function is a node-set (nodelist) even
in the case it contains just a single node.
In your jscript function you have to use a statement like this:
thedate = "" + datevalue(0).xml
Cheers,
Dimitre Novatchev.
Thanasis Mastrogiannis wrote:
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).
Can anyone help?
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list