[Mono-bugs] [Bug 376395] incorrect xml schema validation error
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Apr 2 15:08:01 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=376395
User atsushi at ximian.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=376395#c1
--- Comment #1 from Atsushi Enomoto <atsushi at ximian.com> 2008-04-02 13:08:01 MST ---
Simplified instance:
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
<class
name="ISIS.Data.Core.EnrollmentRequest, ISIS.Data"
table="EnrollmentRequest">
<set
name="Elections"
cascade="all"
inverse="true">
<key
column="EnrollmentRequestUniqueId" />
<one-to-many
class="ISIS.Data.Core.EnrollmentRequestElection, ISIS.Data" />
</set>
<sql-insert check="none">
</sql-insert>
<sql-update check="none">
</sql-update>
</class>
</hibernate-mapping>
Simplified schema:
<xs:schema targetNamespace="urn:nhibernate-mapping-2.2"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="urn:nhibernate-mapping-2.2"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="hibernate-mapping">
<xs:annotation>
<xs:documentation>hibernate-mapping is the document
root</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="class" />
<xs:element ref="subclass" />
<xs:element ref="joined-subclass" />
</xs:choice>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="set">
<xs:complexType>
</xs:complexType>
</xs:element>
<xs:complexType name="customSQL" mixed="true">
<xs:attribute name="check" type="customSQLCheck" use="optional"
/>
</xs:complexType>
<xs:element name="sql-insert" type="customSQL" />
<xs:element name="sql-update" type="customSQL" />
<xs:element name="sql-delete" type="customSQL" />
<xs:element name="sql-delete-all" type="customSQL" />
<xs:simpleType name="customSQLCheck">
<xs:restriction base="xs:string">
<xs:enumeration value="none" />
<xs:enumeration value="rowcount" />
</xs:restriction>
</xs:simpleType>
<xs:group name="classCustomSQL">
<xs:sequence>
<xs:element ref="sql-insert" minOccurs="0"
maxOccurs="1" />
<xs:element ref="sql-update" minOccurs="0"
maxOccurs="1" />
<xs:element ref="sql-delete" minOccurs="0"
maxOccurs="1" />
</xs:sequence>
</xs:group>
<xs:element name="subclass">
<xs:annotation>
<xs:documentation>Subclass declarations are nested
beneath the root class declaration to achieve polymorphic
persistence</xs:documentation>
</xs:annotation>
<xs:complexType>
</xs:complexType>
</xs:element>
<xs:element name="joined-subclass">
<xs:annotation>
<xs:documentation>Joined subclasses are used for the
normalized table-per-subclass mapping strategy</xs:documentation>
</xs:annotation>
<xs:complexType>
</xs:complexType>
</xs:element>
<xs:element name="class">
<xs:annotation>
<xs:documentation>Root of an entity class hierarchy.
Entities have their own tables</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="set" />
</xs:choice>
<xs:choice>
<xs:element ref="subclass"
minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="joined-subclass"
minOccurs="0" maxOccurs="unbounded" />
</xs:choice>
<xs:group ref="classCustomSQL" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
--
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