xsv bug wrt anyType?

Here's a test schema and instance (they're both complete toys, they
aren't supposed to make any sense). xsv (the latest from CVS as of,
er, 29 Sep, I'm behind a firewall today and can't try another get)
reports

  <schemaError char='18' line='16' phase='instance'
  resource='file:///share/projects/w3c/spec-prod/schema/test.xsd'>Undefined
  type xsd{http://www.w3.org/2000/10/XMLSchema}:anyType referenced as
  basetype of graphic</schemaError>

xsv bug, or user error?

--%<test.xsd>%--
<!DOCTYPE schema SYSTEM "/share/doctypes/xmlschema/XMLSchema.dtd">
<schema xmlns='http://www.w3.org/2000/10/XMLSchema'
        xmlns:xsd='http://www.w3.org/2000/10/XMLSchema'
        targetNamespace='http://www.nwalsh.com/foo'
        xmlns:foo='http://www.nwalsh.com/foo'
        elementFormDefault='qualified'
	attributeFormDefault='unqualified'>

<attributeGroup name='role.att'>
  <attribute name='role' type='NMTOKEN'/>
</attributeGroup>

<attributeGroup name='common.att'>
  <attribute name='id' type='ID'/>
  <attributeGroup ref='foo:role.att'/>
</attributeGroup>

<complexType name='graphic'>
  <complexContent>
    <restriction base="xsd:anyType">
      <attributeGroup ref='foo:role.att'/>
    </restriction>
  </complexContent>
</complexType>

<complexType name='doc'>
  <choice minOccurs='1' maxOccurs='unbounded'>
    <element ref='foo:p'/>
    <element ref='foo:graphic'/>
  </choice>
</complexType>

<complexType name='p' mixed='true'>
  <simpleContent>
    <extension base="string">
      <attributeGroup ref='foo:common.att'/>
    </extension>
  </simpleContent>
</complexType>

<complexType name='p.x' mixed='true'>
  <attributeGroup ref='foo:common.att'/>
</complexType>

<element name='doc' type='foo:doc'/>
<element name='p' type='foo:p'/>
<element name='graphic' type='foo:graphic'/>

</schema>
--%</test.xsd>%--

--%<test.xml>%--
<doc xmlns='http://www.nwalsh.com/foo'
     xmlns:xsi='http://www.w3.org/2000/10/XMLSchema-instance'>
<p role='test'>foo</p>
<graphic role='anothertest'/>
</doc>
--%</test.xml>%--

                                        Be seeing you,
                                          norm

P.S. Has anyone else built an XSLT stylesheet to turn the XSV output
into something more easily parsed by mortals? If not, I'll post my
hack.

-- 
Norman Walsh <ndw@nwalsh.com> | The belief in a supernatural source of
http://nwalsh.com/            | evil is not necessary; men alone are
                              | quite capable of every
                              | wickedness.--Joseph Conrad

Received on Tuesday, 10 October 2000 12:59:57 UTC