Dear list,
IXMLSpectrum (on GitHub) has now been updated to support multi-file
XSLT projects.
From a single entry-point XSLT file, all included/imported files are
traversed so a collection of HTML files is produced in a directory
structure that mirrors that of the target project. Each file has XSLT
2.0 and XPath 2.0 syntax-highlighting, plus optional reformatting.
Within each HTML rendering of the XSLT code, all referenced global
functions, variables, parameters and named templates within XPath
expressions are hyperlinked to the corresponding definitions. A table
of contents is also produced that links to all files and their
respective global members.
As the base for testing these features, I used the Docbook XSLT 2.0
project (using xslt/base/html/docbook.xsl as the entry-point)
The sample output from XMLSpectrum can be reached from the generated
table of contents here:
http://qutoric.com/samples/docbook20demo/
Notes:
This above sample was generated from a single command-line instruction
on the Saxon 9.3 HE XSLT 2.0 processor, 'highlight-file.xsl' was used
as the principal stylehseet with 'link-names=yes', 'auto-trim=yes' and
'indent=2' options (multi-line variables are managed by the indent
feature). These options were reluctantly used due to difficulties with
the mixed tabs/spaces found in some of the original formatting -
though to be fair, the original formatting was very good,
significantly better than found in many projects.
The Docbook XSLT 2.0 project is on Github here:
https://github.com/docbook/xslt20-stylesheets
The updated XMLSpectrum version is on Github here:
https://github.com/pgfearo/xmlspectrum
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>
--~--