Comment by notfed

5 months ago

> It does not wipe out whitespace just on its own.

Sounds nice but doesn't match my lived experience with both Chrome's built-in XSLT processor and `xsltproc`. (I was using XSLT 1.0, for legacy reasons, so maybe this is an XSLT 1.0 issue?)

> Do you mean that you'd like facilities to nicely reindent the output?

No, I do mean preserve whitespace (i.e., formatting), such as between elements and between attributes.

usually whitespace (in) significance is specified in the XML schema. so if you provide a schema and instruct the xslt engine to comply with the schema, do your issues persist?