Support #4263

Xslt output formatting changed after update to

Added by Pratheek K 8 months ago. Updated 8 months ago.

Start date:
Due date:
% Done:


Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:


We recently upgraded the Saxon EE version from to 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 ‘’ 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?

before.txt (619 Bytes) Pratheek K, 2019-07-29 06:05 before.txt
after.txt (547 Bytes) Pratheek K, 2019-07-29 06:05 after.txt


#1 Updated by Michael Kay 8 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.

#2 Updated by Pratheek K 8 months ago

Thanks for the reply Michael. We have decided to adapt the changes.

#3 Updated by Michael Kay 8 months ago

  • Tracker changed from Bug to Support
  • Status changed from New to Closed
  • Assignee set to Michael Kay
  • Priority changed from High to Normal

Please register to edit this issue

Also available in: Atom PDF