Article View: pl.comp.xml
Article #10008Re: "Invalid value for maxOccurs (must be 0 or 1)." -- wtf?
From: Andrew Cohen
Date: Tue, 30 Sep 2008 16:14
Date: Tue, 30 Sep 2008 16:14
15 lines
1545 bytes
1545 bytes
Filip Rembiałkowski pisze:
> ale chyba czegoś nie rozumiem bo
> $ xmllint --noout --schema owoce.xsd owoce.xml
> owoce.xsd:6: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': Invalid value for maxOccurs (must be 0 or 1).
> owoce.xsd:7: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': Invalid value for maxOccurs (must be 0 or 1).
> WXS schema owoce.xsd failed to compile
http://www.w3.org/TR/xmlschema-1/#cos-all-limited
When a model group has {compositor} all, then all of the following must be true:
[...]
The {max occurs} of all the particles in the {particles} of the group must be 0 or 1.
--
Andrew Cohen
Technical Details
Message-ID:
<gbtj1f$7s9$1@news.onet.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mailReferences:
<gbt1tf$6ed$1@nemesis.news.neostrada.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail From: Andrew Cohen <cohen72@vp.pl> Newsgroups: pl.comp.xml Subject: Re: "Invalid value for maxOccurs (must be 0 or 1)." -- wtf? Date: Tue, 30 Sep 2008 18:14:49 +0200 Organization: Onet.pl Lines: 15 Message-ID: <gbtj1f$7s9$1@news.onet.pl> References: <gbt1tf$6ed$1@nemesis.news.neostrada.pl> NNTP-Posting-Host: jan200.net.autocom.pl Mime-Version: 1.0 X-Trace: news.onet.pl 1222791023 8073 77.236.6.47 (30 Sep 2008 16:10:23 GMT) X-Complaints-To: usenet@news.onet.pl NNTP-Posting-Date: Tue, 30 Sep 2008 16:10:23 +0000 (UTC) X-Sender: /NXnEdMO/pH8lMVpkvxASg== In-Reply-To: <gbt1tf$6ed$1@nemesis.news.neostrada.pl> User-Agent: Thunderbird 2.0.0.16 (X11/20080707) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit