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

Re: Syntax Highlighting

Subject: Re: Syntax Highlighting
From: Florent Georges <lists@xxxxxxxxxxxx>
Date: Wed, 16 Dec 2009 15:41:09 +0000 (GMT)
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/

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.