Re: [Moderator Action] Schema validator problem

"Henry" <hsavr@attglobal.net> writes:

Please subscribe to the list if you wish to submit further questions.

> This is a slightly modified fragment from the recent XML Schema Part
> 0: Primer (Apr. 7 2000):
> 
> <xsd:schema xmlns="http://www.XMLBag.com/BasicSchemas.xsd"
>             xmlns:xsd="http://www.w3.org/1999/XMLSchema">
> 
>   <xsd:simpleType name="MyInteger" base="xsd:integer">
>     <xsd:minInclusive value="1"/>
>     <xsd:maxInclusive value="99"/>
>   </xsd:simpleType>
> 
> <xsd:simpleType name="ListOfMyIntType" base="MyInteger" derivedBy="xsd:list"/>
> It produced an error message
> 
> Problems with the schema-validity of the target
> 
> file:/export/home/ht/xsvlog/@28834.5uploaded:9:1: Invalid cvc-attribute.1.2:
> attribute type check failed for {None}:derivedBy: xsd:list not in enumeration
> [u'list', u'restriction']

Just what it says:  xsd:list is not list.  The value of the derivedBy
attribute is not a QName, just a simple enumeration, whose value must
be 'list' or 'restriction'.

Also note your schema has no targetNamespace, so the reference to
{http://www.XMLBag.com/BasicSchemas.xsd}MyInteger will not work.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/

Received on Wednesday, 13 September 2000 04:06:46 UTC