Project

Profile

Help

Support #4263

closed

Xslt output formatting changed after update to 9.9.1.3

Added by Pratheek K over 4 years ago. Updated over 4 years ago.

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

0%

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

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?


Files

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

Updated by Michael Kay over 4 years 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.

Actions #2

Updated by Pratheek K over 4 years ago

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

Actions #3

Updated by Michael Kay over 4 years 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