[xquery-talk] [ANN] Syntax-highlighting XQuery 3.0 with XSLT

Philip Fearon pgfearo at googlemail.com
Tue Jun 18 10:50:08 PDT 2013

Dear list members,

I'm pleased to announce that I've just updated the XMLSpectrum project
so it can now generate syntax-highlighted HTML for XQuery code
conforming to the candidate recommendation for XQuery 3.0.

XMLSpectrum comprises a set of standard-XSLT 2.0 stylesheets for
syntax-highlighting languages that are part of the XPath family. Other
supported specifications include XSLT 3.0, Schematron, XProc and XML
Schema 1.1.

XSLT parameters allow control over a range of options including 6
customisable color themes  and css placement
(inline/internal/external). Though this is purely an XSLT solution, a
light-weight Java GUI front-end is included with the project -
providing quick access to many of the rendering options for the
transform and a built-in webkit browser for reviewing the result.

To give an idea of how this performs for XQuery, the XHTML result from
running the XMLSpectrum XSLT against the W3C (XQuery 3.0)
specification samples is shown here:


XMLSpectrum is an open source project hosted on GitHub at:


Many thanks

Phil Fearon

More information about the talk mailing list