xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] problems passing a node value to a jscript function...


Subject: RE: [xsl] problems passing a node value to a jscript function...
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Tue, 2 Jan 2001 11:38:23 -0000

> 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
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor