Project

Profile

Help

Support #1850

closed

Indenting issue with embedded XML

Added by Vadim Peretokin over 11 years ago. Updated over 11 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2013-07-21
Due date:
% Done:

0%

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

Description

Hi,

I have a demonstrative XSL transformation (transformation.xsl) which embeds an XML snippet (XML fragment.xml) inside another as CDATA for DocBooks purposes. The issue that I'm running into is that all Saxon transformation engines (6.5.5, HE/PE/EE 9.4.06 both in XSLT 1.0 and 2.0) are generating output with the embedded XML snippets indenting going wrong.

The attached saxon output.xml shows the output generated by Saxon engines - observe how and at the bottom of the document are not indented properly.

However, the same snippet and transformation, when run with Xalan, does produce the desired output (xalan output.xml).

I'm not quite certain what the issue is - I have a hunch it might be with the CDATA wrappers, but I'm not certain. If there's a better way to do it that fixes the problem, I'll take it :)

Any ideas on what is going wrong?

Thank you.


Files

issueswithindentinganembeddeddocument.zip (3.24 KB) issueswithindentinganembeddeddocument.zip Vadim Peretokin, 2013-07-22 00:58
testing.zip (1.73 KB) testing.zip Vadim Peretokin, 2013-07-23 01:31

Please register to edit this issue

Also available in: Atom PDF