[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] [Ann] XMLSpectrum - Update to support reformatting of malformed XSLT


Subject: [xsl] [Ann] XMLSpectrum - Update to support reformatting of malformed XSLT
From: Philip Fearon <pgfearo@xxxxxxxxxxxxxx>
Date: Mon, 25 Mar 2013 09:17:58 +0000

I've updated XMLSpectrum so it can now correct the formatting of
indented multi-line XPath expressions which may be corrupted by XSLT
editors when such expressions are copied and pasted or the host XSLT
is reformatted.

The highlight-file.xsl is the entry point in XMLSpectrum, so this can
be set up as a scenario within the editor with the XSLT parameters for
'indent' set to the required number of spaces and 'auto-trim' and
'css-inline' set to 'yes'. With my editor, the properly formatted code
is opened automatically in a browser from which I then paste into the
editor - unfortunately, I first need to disable the editor's own
'smart' formatting to prevent the formatting being corrupted again.

Using XMLSpectrum in this way is somewhat cumbersome, but seems to be
the best way of fixing this issue until XSLT editors improve support
for XPath formatting (at least one vendor is looking into this).

XMLSpectrum can be downloaded from Github on:

https://github.com/pgfearo/xmlspectrum

----------
Thanks

Phil Fearon


Current Thread
Keywords