Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - problem with occurence of elements >Thread Next - [ann] Schema Lightener: a free tool for simplifying schemas maxOccurs bugTo: xmlschema-dev@--.--- Date: 3/9/2008 1:07:00 PM
Hello!
I'm using the validator (http://www.w3.org/2001/03/webdata/xsv), and it'=
s =
working great except for one thing. To illustrate, I've written a valid=
=
sample schema which, when uploaded, returns an error. The source and =
error follow.
<?xml version="1.0" encoding="iso-8859-1"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.w3.org/2001/03/webdata/xsv"
xmlns="http://www.w3.org/2001/03/webdata/xsv"
elementFormDefault="qualified">
<xsd:element name="root">
<xsd:complexType>
<xsd:all>
<xsd:element name="example" maxOccurs="2"/>
</xsd:all>
</xsd:complexType>
</xsd:element>
</xsd:schema>
Invalid per cvc-attribute.1.2: attribute type check failed for =
{None}:maxOccurs: 2 not in enumeration [0, 1]
The standard, as I understand it, requires that all natural numbers and =
=
the string "unbounded" be valid values of the maxOccurs attribute. Am I=
=
mistaken?
Thanks!
Chris
From boris@c... Mon Mar 10 06:42:50 2008
Received: from maggie.w3.org ([193.51.208.68]) | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
