 |
 |
 |
>
> 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.
You might find Saxon's error message more helpful:
Error at xsd:all on line 9 of file:/c:/temp/test.xsd:
Within <xs:all>, an <xs:element> must have @maxOccurs equal to 0 or 1
See Schema Part 1 =A73.8.6, constraint "All Group Limited", rule 2.
This rule is lifted in XML Schema 1.1, and this feature of XML Schema =
1.1
will be implemented in the next Saxon release.
Michael Kay
http://www.saxonica.com/
> 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 paul@x... Mon Mar 10 17:08:45 2008
Received: from maggie.w3.org ([193.51.208.68])
|
 | 

|  |
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.
|  |
| |
 |
 |
 |