Sorry, I'm sure it's too late to assure you that I'm not
a complete idiot, but the version of *libxml2* that I'm
using is 2.6.29. Sorry for the confusion!
-syam
Syam Gadde wrote:
> Hello,
>
> I am using libxml version 1.8.17 as distributed with fedora core 6.
> I am encountering some problems validating with a rather complicated
> schema, GML. I've been able to reduce the problem to the schema included
> below. The error I get with xmllint --schema is:
>
> tmp.xsd:4: element complexType: Schemas parser error : local list
> type: A type, derived by list or union, must havethe simple ur-type
> definition as base type, not '{http://localhost/tmp}SimpleListType'.
>
> Here is the mini-schema that illustrates the problem. Any thoughts?
> Thanks for any help!
>
> -syam
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <schema targetNamespace="http://localhost/tmp"
> xmlns="http://www.w3.org/2001/XMLSchema"
> xmlns:tmp="http://localhost/tmp" elementFormDefault="qualified">
>
> <complexType name="RestrictedType">
> <simpleContent>
> <restriction base="tmp:ExtendedType">
> <length value="2"/>
> </restriction>
> </simpleContent>
> </complexType>
>
> <complexType name="ExtendedType">
> <simpleContent>
> <extension base="tmp:SimpleListType">
> <attribute name="newattr" type="anyURI" use="required"/>
> </extension>
> </simpleContent>
> </complexType>
>
> <simpleType name="SimpleListType">
> <list itemType="anyURI"/>
> </simpleType>
>
> </schema>
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml