Donate Share

Saxon XSLT and XQuery Processor

Tracker: Bugs

3 xml:space=preserve should stop indenting - ID: 680755
Last Update: Settings changed ( mhkay )

The serialization spec for method="xml", indent="yes"
says that whitespace should not be added in a place
where whitespace stripping would not remove it. It also
gives special treatment to an xsl:text element
appearing in the result tree.

The implication is that Saxon should suppress
indentation for (a) an xsl:text element, and (b) any
element that specifies xml:space="preserve". Saxon
makes no attempt to do this, it indents unconditionally.

Applies to 6.5.2, 7.3.1, and all earlier releases.


Michael Kay ( mhkay ) - 2003-02-05 09:20

3

Closed

Fixed

Michael Kay

Serialization

v6.5.2

Public


Comments ( 2 )

Date: 2003-08-07 14:31
Sender: mhkayProject Admin

Logged In: YES
user_id=251681

Source code now fixed in 6.5.x branch also


Date: 2003-02-05 10:46
Sender: mhkayProject Admin

Logged In: YES
user_id=251681

Further investigation shows that the special rules for
xsl:text don't affect the Saxon serializer, because Saxon
only ever puts extra whitespace before a start tag or after
an end tag.

As regards xml:space="preserve", the source code has been
fixed in the 7.3.x branch but not yet in the 6.5.x branch.

Test cases added: outp73 and outp74


Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
status_id Open 2003-08-14 14:21 mhkay
resolution_id None 2003-08-14 14:21 mhkay
close_date - 2003-08-14 14:21 mhkay