[xml] simpleType list restriction in xmllint


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!


<?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">
      <restriction base="tmp:ExtendedType">
        <length value="2"/>

  <complexType name="ExtendedType">
      <extension base="tmp:SimpleListType">
        <attribute name="newattr" type="anyURI" use="required"/>

  <simpleType name="SimpleListType">
    <list itemType="anyURI"/>


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