xsl-list
[Top] [All Lists]

Re: [xsl] XSLT 1.0 serializer for XML

2010-08-19 10:40:49
Hermann Stamm-Wilbrandt wrote:

in another thread Florent posted [1] a link to a XML serializer written
in pure XSLT [2].
That serializer is written in XSLT 2.0 and cannot be used in browsers;
they do support XSLT 1.0 only.

It has been done in XSLT 1.0 too:
http://lenzconsulting.com/xml-to-string/xml-to-string.xsl

With Michael's help I got the differentiation of the 6 XML node types

Question 3:
Is it correct, that a stylesheet cannot have access to the CDATA sections?
(I think the parser removes them)

The XSLT/XPath data model does not know any CDATA sections respectively does not distinguish between "normal" text nodes and CDATA section nodes, like the W3C DOM does. So XSLT operates on a tree model where there are only text nodes.



--

        Martin Honnen
        http://msmvps.com/blogs/martin_honnen/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>