Re: [xml] Error in schema or in xmllint?
- From: Daniel Veillard <veillard redhat com>
- To: Roland Lezuo <roland lezuo rise tuwien ac at>
- Cc: xml gnome org
- Subject: Re: [xml] Error in schema or in xmllint?
- Date: Thu, 19 Aug 2004 15:33:27 -0400
On Thu, Aug 19, 2004 at 06:28:00PM +0200, Roland Lezuo wrote:
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>
PGPKeyPacket doesn't look like a top level declarations so I doubt
it should be declared global, seems a libxml2 bug to me.
Daniel
--
Daniel Veillard | Red Hat Desktop team http://redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]