#388 xml:space="preserve" is ignored

v8.5
closed
Michael Kay
5
2012-10-08
2005-08-07
Michael Kay
No

The attribute xml:space="preserve" is ignored in both
source documents and stylesheets. This means that
whitespace text nodes are stripped when they should not be.

This bug is present in Saxon 8.4 and 8.5 and appears to
have been present for quite a few previous releases.

The bug applies when input is processed from a
SAXSource or StreamSource, which includes the case
where the transformation is run from the command line.

Discussion

  • Michael Kay
    Michael Kay
    2005-08-07

    Logged In: YES
    user_id=251681

    On further investigation, the problem has affected
    stylesheets since at least Saxon 7.9.1; but affects
    xml:space="preserve" in source documents only since Saxon 8.5.