Re: [xml] simpleType list restriction in xmllint

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 Gadde wrote:

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=""; 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]