top | item 43508690

(no title)

ebruchez | 11 months ago

XSLT will perform the transformations that you instruct it to do. It does not wipe out whitespace just on its own. Do you mean that you'd like facilities to nicely reindent the output?

discuss

order

notfed|11 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.

froh|11 months ago

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?