[Mono-bugs] [Bug 619224] New: xsd creates "FieldSpecified" different than microsofts xsd

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jul 1 11:59:21 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=619224

http://bugzilla.novell.com/show_bug.cgi?id=619224#c0


           Summary: xsd creates "FieldSpecified" different than microsofts
                    xsd
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.6.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: XSD
        AssignedTo: atsushi at ximian.com
        ReportedBy: josef.semmler at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2)
Gecko/20100115 Firefox/3.6

When you have a schema with an optional attribute, like this:
..
<xsd:attribute name="subId" type="xsd:unsignedInt" use="optional"/>
..

and create c# classes out of this using xsd, the microsoft version of xsd
creates:
 private uint subIdField;
 private bool subIdFieldSpecified;

where the mono version creates:
 private uint subIdField;
 private bool subIdSpecifiedField;

So mono does not just append "Specified", but also changes the order ...
This makes it almost impossible to port code ...


Reproducible: Always

Steps to Reproduce:
1. take any schema using a optional attribute
2. translate the schema to a class
3.
Actual Results:  
 private bool XXXXSpecifiedField;

(where XXXX is an optional field)

Expected Results:  
 private bool XXXXFieldSpecified;

(where XXXX is an optional field)

-- 
Configure bugmail: http://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