[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: rendering xml fragment tree as syntax highlighted

Subject: Re: rendering xml fragment tree as syntax highlighted HTML
From: Florent Georges <darkman_spam@xxxxxxxx>
Date: Fri, 12 Jan 2007 17:27:49 +0100 (CET)
Re:  rendering xml fragment tree as syntax highlighted
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 &lt; and &gt;

  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





















	

	
		
___________________________________________________________________________ 
Dicouvrez une nouvelle fagon d'obtenir des riponses ` toutes vos questions ! 
Profitez des connaissances, des opinions et des expiriences des internautes sur Yahoo! Questions/Riponses 
http://fr.answers.yahoo.com

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.