[xsl] serializing and parsing xml in xslt

Subject: [xsl] serializing and parsing xml in xslt
From: Erik Wilde <net.dret@xxxxxxxx>
Date: Thu, 06 Jul 2006 23:13:14 +0200
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.

Current Thread