[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Syntax Highlighting
Heiko Niemann wrote: Hi, > I would like to display a syntax highlighted XML source/code > (in this case WSDL) in HTML. I have found a couple stylesheets > that might do the job. To ease my search I would like to know > whether there are any recommendations for this task. The > stylesheet should support idention. Back a few years ago, I wrote a general purpose XML serializer in XSLT: http://www.fgeorges.org/xslt/serial/ If I remember well, the serializer takes care of several properties, like indentation, whitespace handling (supports @xml:space), even namespace reduction if I remember correctly, etc., and delegates the actual serialization to function objects (simulated using FXSL's f:apply()). So you can use the serializer with different configurations in the same transform. The distribution contains an implementation to serialize to plain text and another to HTML (generating span elements with @class to configure easily the result, but you can also configure it at the XSLT level). That could be a nice example to translate to XSLT 2.1 ;-) Regards, -- Florent Georges http://www.fgeorges.org/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|