Project

Profile

Help

Support #4263

Xslt output formatting changed after update to 9.9.1.3

Added by Pratheek K about 2 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2019-07-29
Due date:
% Done:

0%

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

Description

We recently upgraded the Saxon EE version from 9.8.0.12 to 9.9.1.3. 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?

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

History

#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.

#2 Updated by Pratheek K about 2 months ago

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

#3 Updated by Michael Kay about 2 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