Xslt output formatting changed after update to 184.108.40.206
We recently upgraded the Saxon EE version from 220.127.116.11 to 18.104.22.168. After this, the output xml from xslt transformation seems to be formatted(extra whitespaces removed). Attached the old and new xslt outputs. I tried setting the property ‘http://saxon.sf.net/feature/strip-whitespace’ to “none” in EnterpriseConfiguration of SaxonicaFactory, but that did not help. We would like to generate the exact same output from the xslt transformation to be backward compatible. I am creating a high ticket as our release is affected.Can you please help?
#1 Updated by Michael Kay about 2 months ago
I'm happy to explore why this change occurred if you send us a repro, but I'm afraid we cannot guarantee that seriallised output will remain byte-for-byte the same from one release to the next; on the contrary, if we find opportunities to improve the output (within the rules of the W3C specification) then we will take those opportunities.
If you are running regression tests that assume the serialised output will be unchanged then you should be thinking about how to improve your test driver to look for logical equivalence rather than lexical equivalence.
Please register to edit this issue