GNOME Bugzilla – Bug 725317
libxslt ignores xml:space attribute in variable definition
Last modified: 2014-02-27 16:36:04 UTC
Libxslt >= 1.1.28 replaces spaces only variable definition by an empty string. That means: <xsl:variable xml:space="preserve"> </xsl:variable>defines an empty-string variable, regardless od xml:space attribute, while it should define a variable consisting of 5 spaces text node. This behaviour was NOT reproduced with libxslt 1.1.27 I have attached an example file whitespace.xml to illustrate this issue. Expected result: 5 Result with libxslt 1.1.28 0
Created attachment 270472 [details] Sample xml/xsl file
Works in current Git master. Probably fixed by this commit: https://git.gnome.org/browse/libxslt/commit/?id=7cb08dacadf7e1cf88ee2f45815251b61bffcde6 (This bug was actually introduced by a change in libxml2.)