- From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
- Date: 09 Jan 2001 14:25:45 +0000
- To: Kerry Coffin <kcoffin@mediaone.net>
- Cc: www-xml-schema-comments@w3.org
Kerry Coffin <kcoffin@mediaone.net> writes: > Hi, > I have a question about lists: > > My schema: testList.xsd > ---------------------------- > <?xml version="1.0" encoding="UTF-8"?> > <xsd:schema xmlns:xsd="http://www.w3.org/2000/10/XMLSchema" > elementFormDefault="qualified"> > <xsd:simpleType name="IntegerListType"> > <xsd:list itemType="xsd:positiveInteger"/> > </xsd:simpleType> > <xsd:element name="IntList" type="IntegerListType"/> > </xsd:schema> > > > > > My xml file: XML SPY V3.5B3 does NOT validate > ------------------- > <?xml version="1.0" encoding="UTF-8"?> > <IntList xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" > xsi:noNamespaceSchemaLocation="C:\ArcIMS\AXL\testList.xsd">5 5</IntList> > > XML Spy says: > Invalid value for datatype positiveInteger in element 'Text' XSV [1] is happy, and I believe your document is schema valid per the schema -- I think we've seen this problem with XML Spy before. . . ht [1] http://www.w3.org/2000/09/webdata/xsv -- 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 Tuesday, 9 January 2001 09:25:48 UTC