[GeoNetwork-users] Another error in schema parsing??

Hello,

I've added new XML Schema to Geonetwork 2.2. The problem is with some schema
structures. Narrowly with xsd:group inside xsd:choice structure. After XML
insert to GN with element "czas", elements "od", "do" are added
automatically, but they shouldn't appear. They could appear in XML only
instead of element "czas".

Schema example:

<xsd:complexType name="Data">
    <xsd:sequence>
      <xsd:element name="typ" type="ndap:TypDaty" minOccurs="1"
maxOccurs="1"/>
      <xsd:choice>
        <xsd:element name="czas" type="ndap:Czas" minOccurs="1"
maxOccurs="1"/>
  <xsd:group ref="ndap:PrzedzialCzasu"/>
      </xsd:choice>
    </xsd:sequence>
  </xsd:complexType>

  <xsd:simpleType name="TypDaty">
    <xsd:restriction base="xsd:string">
      <xsd:enumeration value="dostepnyPo"/>
      <xsd:enumeration value="opublikowany"/>
      <xsd:enumeration value="stworzony"/>
      <xsd:enumeration value="uzyskany"/>
      <xsd:enumeration value="otrzymany"/>
      <xsd:enumeration value="wyslany"/>
      <xsd:enumeration value="zaakceptowany"/>
      <xsd:enumeration value="zatwierdzony"/>
      <xsd:enumeration value="zmodyfikowany"/>
      <xsd:enumeration value="daty skrajne"/>
    </xsd:restriction>
  </xsd:simpleType>

  <xsd:group name="PrzedzialCzasu">
    <xsd:sequence>
      <xsd:element name="od" type="ndap:Czas" minOccurs="1" maxOccurs="1"/>
      <xsd:element name="do" type="ndap:Czas" minOccurs="1" maxOccurs="1"/>
    </xsd:sequence>
  </xsd:group>

  <xsd:simpleType name="Czas">
    <xsd:union memberTypes="xsd:gYear xsd:gYearMonth xsd:date xsd:dateTime"/>
  </xsd:simpleType>

I added full schema -> http://n2.nabble.com/file/n2490200/schema.xsd
schema.xsd
File example -> http://n2.nabble.com/file/n2490200/xml_example.xml
xml_example.xml

Is there any way to pass by this bug?
Please help.

Cheers
--
View this message in context: http://n2.nabble.com/Another-error-in-schema-parsing---tp2490200p2490200.html
Sent from the geonetwork-users mailing list archive at Nabble.com.