Skip to content
Phil Fearon edited this page May 18, 2014 · 29 revisions

The XMLSpectrum project was started with the primary goal of providing syntax-highlighting for XPath-family source code (XSLT, XQuery etc.) and leave the formatting exactly as in the source. However, when testing XMLSpectrum against many XSLT samples in the public domain, a significant number of formatting issues were found in the original source. Such formatting issues can severely impact the readability or the code - to the extent where syntax-highlighting becomes largely irrelevant. This is why a significant number of XML/XSLT formatting features are included in XMLSpectrum.

For this reason, XMLSpectrum uses the unparsed-text() XPath function on all input files, regardless of whether they are XML or not; this ensures that no whitespace is lost by an external XML parser.

Clone this wiki locally