Namespace = http://www.admin.ch/2004/GDBML
For further information, see: http://www.eif.ch/projets/CH-Gesetzesdatenbank
Copyright (c) 2004 Mario Ramalho, MISL, All Rights Reserved.
===============================================================
</xs:documentation>
</xs:annotation>
<xs:element name = “laws”> xs:annotation xs:documentationRoot element of a law document</xs:documentation>
</xs:annotation> xs:complexType xs:sequence
<xs:element name = “head”> xs:complexType
<xs:attribute name = “RS” type = “xs:int” use = “required”></xs:attribute>
<xs:attribute name = “title” type = “xs:string” use = “required”></xs:attribute>
<xs:attribute name = “abbreviation” type = “xs:string”></xs:attribute>
<xs:attribute name = “adoptiondate” type = “xs:date” use = “required”></xs:attribute>
<xs:attribute name = “conclusiondate” type = “xs:date”></xs:attribute>
<xs:attribute name = “ratificationdate” type = “xs:date”></xs:attribute>
<xs:attribute name = “entrydate” type = “xs:date”></xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name = “preamble”> xs:complexType xs:sequence
<xs:element name = “writers” type = “xs:string” maxOccurs = “unbounded”></xs:element>
<xs:element name = “reference” maxOccurs = “unbounded”></xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name = “body” type = “gdb:Body”></xs:element>
<xs:element name = “finalprovisions”></xs:element>
</xs:sequence>
</xs:complexType>
</xs:element> xs:annotation xs:documentation
====================== Complex Type Definition ==========================
</xs:documentation>
</xs:annotation>
<xs:complexType name = “Container”> xs:choice
<xs:element name = “division” type = “gdb:Container” maxOccurs = “unbounded”></xs:element>
<xs:element name = “article” type = “gdb:Article” maxOccurs = “unbounded”></xs:element>
</xs:choice>
<xs:attribute name = “id”></xs:attribute>
<xs:attribute name = “title”></xs:attribute>
<xs:attribute name = “name” type = “xs:string” use = “required”></xs:attribute>
</xs:complexType>
<xs:complexType name = “Body”> xs:choice
<xs:element name = “division” type = “gdb:Container” maxOccurs = “unbounded”></xs:element>
<xs:element name = “article” type = “gdb:Article” maxOccurs = “unbounded”></xs:element>
</xs:choice>
</xs:complexType>
<xs:complexType name = “Article”> xs:annotation xs:documentation
====================== Article Definition ============================
Sample of article (french) :
Art. 641 A.El
I think that the problem you are encountering is related to your document rather than your schema. I was able to insert the following document into the schema that you posted: