[xml] simpleType list restriction in xmllint
- From: Syam Gadde <gadde biac duke edu>
- To: xml gnome org
- Subject: [xml] simpleType list restriction in xmllint
- Date: Tue, 26 Jun 2007 15:46:55 -0400
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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]