[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";
targetNamespace="http://www.w3.org/2000/09/xmldsig#"; version="0.1"
  <complexType name="PGPDataType">
        <element name="PGPKeyID" type="base64Binary"/>
        <element name="PGPKeyPacket" type="base64Binary" minOccurs="0"/>
        <any namespace="##other" processContents="lax" minOccurs="0"
        <element name="PGPKeyPacket" type="base64Binary"/>
        <any namespace="##other" processContents="lax" minOccurs="0"

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

roland lezuo

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