http://bugzilla.novell.com/show_bug.cgi?id=513021
Summary: XmlSchema.Compile Exception: Invalid complex content
extension was found
Classification: Mono
Product: Mono: Class Libraries
Version: 2.4.x
Platform: i686
OS/Version: Windows XP
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.XML
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
Found By: ---
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1;
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; CIBA; .NET CLR
2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; GreenBrowser)
When XmlSchemaSet validate a complexType base on another complexType, raise
System.Xml.Schema.XmlSchemaException: Invalid complex content extension was
found. The schema like this:
<complexType name="linkType">
<complexContent>
<restriction base="xl:extendedType">
<choice minOccurs="0" maxOccurs="unbounded">
<element ref="xl:title"/>
<element ref="xl:documentation"/>
<element ref="link:loc"/>
<element ref="gen:arc"/>
<element ref="xl:resource"/>
</choice>
<anyAttribute namespace="http://www.w3.org/XML/1998/namespace"
processContents="lax"/>
</restriction>
</complexContent>
</complexType>
<complexType name="linkTypeWithOpenAttrs">
<complexContent>
<extension base="gen:linkType">
<anyAttribute namespace="##other"/>
</extension>
</complexContent>
</complexType>
Reproducible: Always
Steps to Reproduce:
XmlSchemaSet schemaSet = new XmlSchemaSet();
schemaSet.Add(null, @"http://xbrl.org/2008/generic-link.xsd");
schemaSet.Compile();
Expected Results:
Succeed. No Exception
--
Configure bugmail: http://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