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


           Summary: XslCompiledTransform does not preserve empty elements
           Product: Mono: Class Libraries
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.XML
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          Found By: ---


Created an attachment (id=244376)
 --> (https://bugzilla.novell.com/attachment.cgi?id=244376)
A small program that reproduces the bug

When using the Microsoft runtime, if your input XML contains empty elements
(i.e. <Element/>), it will output these elements as <Element/>.

When using the Mono runtime, if your input XML contains empty elements, it will
output them as <Element></Element>.

This causes problems when you later use an XmlReader to read your transformed
XML, and use the XmlReader.IsEmptyElement property (i.e. different behaviour on
Mono vs Microsoft implementations).

I have attached a small program that reproduces this bug.

When running under Microsoft's runtime, the following output is observed:

Before Transform: <Foo><Bar/></Foo>
After Transform: <Foo><Bar /></Foo>
'Bar' is an empty element

But when running under Mono's runtime, the following output is observed:

Before Transform: <Foo><Bar/></Foo>
After Transform: <Foo><Bar></Bar></Foo>
ERROR: No Empty Elements Found!


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to