[Mono-bugs] [Bug 348786] New: System.Xml.Xsl.Transform does not support non-empty <xsl: value-of/> elements w/ empty content

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Dec 14 11:55:33 EST 2007


           Summary: System.Xml.Xsl.Transform does not support non-empty
                    <xsl:value-of/> elements w/ empty content
           Product: Mono: Class Libraries
           Version: 1.2.6
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.XML
        AssignedTo: atsushi at ximian.com
        ReportedBy: jpryor at novell.com
         QAContact: mono-bugs at ximian.com
          Found By: ---

System.Xml.Xsl.Transform does not support non-empty <xsl:value-of/> elements.

<xsl:value-of/> IS declared as EMPTY in the non-normative DTD fragment in the
XSLT standard [0], BUT the XML standard says (section 3.1 in [0]):

  For interoperability, the empty-element tag SHOULD be used, and SHOULD only
  used, for elements which are declared EMPTY.

Since it's a SHOULD, not a MUST, non-empty elements must be supported.

[0] http://www.w3.org/TR/xslt.html
[1] http://www.w3.org/TR/xml/

Mono does support <xsl:value-of></xsl:value-of>, but Mono does NOT like it if
<xsl:value-of/> has ANY content at all; so this fails:

  <xsl:value-of select="@bar"><!-- comment --></xsl:value-of>

as does this:

  <xsl:value-of select="@bar">
    <!-- comment -->

NET supports both of these.

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