[xml] Error in schema or in xmllint?



The following schema defination produces the follwing error:

roland lezuo shswe:~/temp/libxml2-cvs$ xmllint --schema test2.xsd
Schemas parser error : Element decl.: A global declaration for
'PGPKeyPacket' is already existent.
WXS schema test2.xsd failed to compile


<?xml version="1.0"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema";
xmlns:ds="http://www.w3.org/2000/09/xmldsig#";
targetNamespace="http://www.w3.org/2000/09/xmldsig#"; version="0.1"
elementFormDefault="qualified">
 
 
  <complexType name="PGPDataType">
    <choice>
      <sequence>
        <element name="PGPKeyID" type="base64Binary"/>
        <element name="PGPKeyPacket" type="base64Binary" minOccurs="0"/>
        <any namespace="##other" processContents="lax" minOccurs="0"
maxOccurs="unbounded"/>
      </sequence>
      <sequence>
        <element name="PGPKeyPacket" type="base64Binary"/>
        <any namespace="##other" processContents="lax" minOccurs="0"
maxOccurs="unbounded"/>
      </sequence>
    </choice>
  </complexType>
 
 
</schema>

This is the errornous part of the xmldsig-core-schema.xsd file, I'm new
to xml but don't believe the xsd is buggy. All other choice tags are
working and this is the only <choice><sequence>... combination...

It libxml2 cvs from 2004-08-19

regards
roland lezuo




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]