Christiane Fritze wrote:
Hi
I want to copy a fragment tree from my source xml document
using <xsl:copy-of/> to the result html document. This
xml fragment should be rendered als well known code2html
tools does it for perl code etc. It means at least all <
and > have to be transformed into < and >
If I understand correctly, you want an XML serializer in
XSLT. If you use XSLT 2.0, you can take a look at this
serializer:
http://www.fgeorges.org/xslt/serial/
If you want an example, the following are first the XML
input and second the HTML produced by a simple stylesheet
(the last link) showing serialization with different
options:
http://www.fgeorges.org/xslt/serial/hello-world.xml
http://www.fgeorges.org/xslt/serial/hello-world.html
http://www.fgeorges.org/xslt/serial/hello-world.xml
Regards,
--drkm
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur
Yahoo! Questions/Réponses
http://fr.answers.yahoo.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>
--~--