Dear list,
Just a quick note to say I've added XQuery support to the XML Spectrum
syntax-highlighter that generates an HTML/CSS output.
To keep things flexible, all processing is done by standard XSLT 2.0.
The lexer/tokenizer was hand-coded in about 1000 lines.
Performance was not a key consideration, but a 2MB XQuery file
(XQueryML30.xq) is transformed to syntax-highlighted HTML in just over
a minute on a high-spec laptop - or put another way, 1300 lines of
XQuery is transformed in about 3 seconds.
Coloring is by CSS which may be inline, internal or external. A few
popular color themes are supported, these are fully configurable via
XML. Whitespace is preserved as-is, re-formatting of the XQuery and
inter/intra-module cross-referencing hyperlinks are not yet supported.
The other standards already supported are: XSLT 2.0, XPath 2.0, XML
Schema 1.1, XProc and Schematron.
The XMLSpectrum-FX GUI front-end for the XSLT (a Java-FX app) has also
been updated.
XMLSpectrum is an open source project. The source code and app are
available from GitHub at:
https://github.com/pgfearo/xmlspectrum
Many thanks
Phil Fearon
--~------------------------------------------------------------------
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>
--~--