[Mono-bugs] [Bug 449512] XSD validation fails

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Dec 9 04:01:25 EST 2008


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

User atsushi at ximian.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=449512#c4





--- Comment #4 from Atsushi Enomoto <atsushi at ximian.com>  2008-12-09 02:01:25 MST ---
Significantly reduced xsd and xml that helps debugging much.

xsd:

<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:ndoc-schema" xmlns="urn:ndoc-schema"
elementFormDefault="qualified">
  <xs:element name="documentation">
    <xs:complexType>
      <xs:choice minOccurs="1" maxOccurs="unbounded">
        <xs:any processContents="skip"/>
      </xs:choice>
    </xs:complexType>
  </xs:element>

  <xs:element name="constructor">
    <xs:complexType>
      <xs:sequence maxOccurs="1" minOccurs="0">
        <xs:element ref="documentation" minOccurs="0" maxOccurs="1"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>

  <xs:element name="ndoc">
    <xs:complexType>
    <xs:sequence>
      <xs:element name="summary" type="xs:string" minOccurs="0" maxOccurs="1"/>
      <xs:element ref="documentation" minOccurs="0" maxOccurs="1"/>
      <xs:element ref="constructor" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

xml:

<ndoc xmlns="urn:ndoc-schema">
  <documentation>
    <summary> Defining and using custom attributes </summary>
  </documentation>
  <constructor>
    <documentation>
      <summary>Initializes a new instance of the <see
cref="T:NDoc3.Test.Attributes.NamespaceDoc" /> class.</summary>
    </documentation>
  </constructor>
</ndoc>


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