Hi All,
I wrote my own templates to do generic XML syntax highlighting, but
then found XML verbatim (HTML output) by Oliver Becker -
http://www2.informatik.hu-berlin.de/~obecker/XSLT/
I've created an equivalent FO stylesheet and added support for
coloring prefixes by name and ability to select (via XPath) XML
elements for emphasis.
If you want to have a look at work in progress please visit:
http://utfx-doc.sourceforge.net/manual.xml
http://utfx-doc.sourceforge.net/manual.html
and
http://utfx-doc.sourceforge.net/manual.pdf
Cheers
j
On 4/19/07, Jirka Kosek <jirka(_at_)kosek(_dot_)cz> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Rashmi Rubdi wrote:
> On a side note I really liked the web-based syntax highlighting and
> coloring, makes it a lot easier to read code. I was looking for a
> program that does the coloring for online code presentation, I've come
> across Java2HTML converter, I was hoping there was something like that
> for XSLT also.
You mean XSLT code for syntax highlighting? I'm not aware of pure XSLT
based solution (although with XSLT 2.0 RE support you can do a lot), but
there is Saxon extension XSLTHL (http://sourceforge.net/projects/xslthl)
which can be used for syntax highlighting. It is also integrated in
DocBook XSL stylesheets:
http://xmlguru.cz/2006/07/docbook-syntax-highlighting
- --
- ------------------------------------------------------------------
Jirka Kosek e-mail: jirka(_at_)kosek(_dot_)cz http://xmlguru.cz
- ------------------------------------------------------------------
Professional XML consulting and training services
DocBook customization, custom XSLT/XSL-FO document processing
- ------------------------------------------------------------------
OASIS DocBook TC member, W3C Invited Expert, ISO/JTC1/SC34 member
- ------------------------------------------------------------------
Want to speak at XML Prague 2007 => http://xmlprague.cz/cfp.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGJybezwmSw7n0dR4RAqhiAKCFk1zZfLE81mvnre4Q2aAvFp2V2wCgxG9+
EvLfw28SyKJWQ2que+CAgXE=
=Zbpt
-----END PGP SIGNATURE-----
--~------------------------------------------------------------------
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>
--~--
--
Jacek Radajewski
--~------------------------------------------------------------------
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>
--~--