xsl-list
[Top] [All Lists]

RE: [xsl] serializing and parsing xml in xslt

2006-07-06 14:27:26
Saxon offers extension functions saxon:parse() and saxon:serialize().

The main use cases are for dealing with "double escaping" where one document
is placed inside a CDATA section within another document; it can also be
handy if you want to post-process the serialized output, for example by
adding an internal DTD. I also have a test driver in which I call
saxon:serialize on the test result and then compare the output with
reference results for the test.

Michael Kay
http://www.saxonica.com/ 

-----Original Message-----
From: Erik Wilde [mailto:net(_dot_)dret(_at_)dret(_dot_)net] 
Sent: 06 July 2006 22:13
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] serializing and parsing xml in xslt

hello everybody.

i ran across a problem where someone wants to basically 
serialize and parse xml in xslt. the idea is to "package" 
some xml sub-trees in attribute values as strings (with 
escaped markup) and then in another transformation to re-use 
this text as xml. and all this in xslt 1.0...

i know that this is a weird idea, but i found it challenging 
to think about how this could be done. i thought that one 
would basically have to write one's own serializer and parser 
in xslt, which probably is rather expensive. am i missing 
some better way to solve this problem?

thanks and cheers,

dret.

--~------------------------------------------------------------------
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>
--~--



--~------------------------------------------------------------------
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>