[Mono-bugs] [Bug 482755] When XSL output is text, transformation does not output <xsl:text> </xsl:text>

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Mar 18 04:27:23 EDT 2009


https://bugzilla.novell.com/show_bug.cgi?id=482755

User lauris at nix.lv added comment
https://bugzilla.novell.com/show_bug.cgi?id=482755#c4





--- Comment #4 from Lauris Bukšis-Haberkorns <lauris at nix.lv>  2009-03-18 02:27:21 MST ---
[code]
<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="/">
    <root>
    <xsl:text>[</xsl:text>
    <xsl:text> </xsl:text>
    <xsl:text>]</xsl:text>
    </root>
  </xsl:template>
</xsl:stylesheet>
[/code]

Should result in "<root>[ ]</root>".

When using mono current result is "<root>[]</root>".

In your example .Net striped space because space alone is still striped in
output (following all rules) but it does not mean that it stripped it from
stylesheet document tree.
Whitespace-only xsl:text nodes should not be stripped from stylesheet document
tree.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list