[Mono-bugs] [Bug 354661] New: XmlSchemaSet.Compile() XmlSchemaException: Invalid particle derivation by restriction was found.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jan 18 01:50:43 EST 2008


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


           Summary: XmlSchemaSet.Compile() XmlSchemaException: Invalid
                    particle derivation by restriction was found.
           Product: Mono: Class Libraries
           Version: 1.2.6
          Platform: i386
        OS/Version: RHEL 4
            Status: NEW
          Severity: Blocker
          Priority: P5 - None
         Component: Sys.XML
        AssignedTo: atsushi at ximian.com
        ReportedBy: chengh at newlido.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: DeveloperNet


Description of Problem:

Steps to reproduce the problem:
1. 
  static void Main(string[] args){
     XmlSchemaSet set = new XmlSchemaSet();
     set.Add(null, "http://www.xbrl.org/2003/xl-2003-12-31.xsd");
     set.Add(null, "http://www.xbrl.org/2003/xlink-2003-12-31.xsd");
     set.Add(null, "http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd");
     set.Compile();
  } 
  run the program raise exception as above list.
2. 
  static void Main(string[] args){
     XmlSchemaSet set = new XmlSchemaSet();
     set.Add(null, "http://www.xbrl.org/2003/xl-2003-12-31.xsd");
     set.Add(null, "http://www.xbrl.org/2003/xlink-2003-12-31.xsd");
     //set.Add(null, "http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd");
     set.Compile();
  } 
  OK

Actual Results:
Unhandled Exception: System.Xml.Schema.XmlSchemaException: XmlSchema error:
Invalid particle derivation by restriction was found. Extraneous derived
particle was found. Related schema item SourceUri:
http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd, Line 309, Position 12.
  at System.Xml.Schema.ValidationHandler.RaiseValidationEvent
(System.Xml.Schema.ValidationEventHandler handle, System.Exception
innerException, System.String message, System.Xml.Schema.XmlSchemaObject xsobj,
System.Object sender, System.String sourceUri, XmlSeverityType severity)
[0x00000]
  at System.Xml.Schema.XmlSchemaObject.error
(System.Xml.Schema.ValidationEventHandler handle, System.String message,
System.Exception innerException, System.Xml.Schema.XmlSchemaObject xsobj,
System.Object sender) [0x00000]
  at System.Xml.Schema.XmlSchemaObject.error
(System.Xml.Schema.ValidationEventHandler handle, System.String message)
[0x00000]
  at System.Xml.Schema.XmlSchemaGroupBase.ValidateSeqRecurseMapSumCommon
(System.Xml.Schema.XmlSchemaGroupBase baseGroup,
System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema,
Boolean isLax, Boolean isMapAndSum, Boolean raiseError) [0x00000]
  at System.Xml.Schema.XmlSchemaChoice.ValidateDerivationByRestriction
(System.Xml.Schema.XmlSchemaParticle baseParticle,
System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema,
Boolean raiseError) [0x00000]
  at System.Xml.Schema.XmlSchemaComplexType.ValidateDerivationValidRestriction
(System.Xml.Schema.XmlSchemaComplexType baseType,
System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema)
[0x00000]
  at System.Xml.Schema.XmlSchemaComplexType.ValidateContentModel
(System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema
schema) [0x00000]
  at System.Xml.Schema.XmlSchemaComplexType.Validate
(System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema
schema) [0x00000]
  at System.Xml.Schema.XmlSchemaElement.Validate
(System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema
schema) [0x00000]
  at System.Xml.Schema.XmlSchema.Validate
(System.Xml.Schema.ValidationEventHandler handler) [0x00000]
  at System.Xml.Schema.XmlSchemaSet.Compile () [0x00000]
  at lxv.Program.Main (System.String[] args) [0x00000]


Expected Results:
No Error No Response

How often does this happen? 
always

Additional Information:
I want the class library work like running under Microsoft .NET class library.


-- 
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