RE: [xsl] escaping from CDATA

Subject: RE: [xsl] escaping from CDATA
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 26 Oct 2001 14:46:33 +0100
> Thanks Jeni. I got a version of the following to work but I don't
> understand why I need the reference to string() - isn't that the
> problem that my node is text in the first place - why do I have
> to convert it to a string?

Within XPath and XSLT, a node-set consisting of a single text node can be
used anywhere that a string is expected. But not when you call JavaScript;
your JavaScript function is expecting a string, and it doesn't know what to
do if you give it a node-set instead.

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread