Ainsi parlait Guillaume Rousse : > Interesting enough, this one (sorry for the careful layout) is detected, > but the exact same one at line 94 is not... I could have been wrong, as some errors occuring at the beginning of the schema are also reported at the end. However, it's curious behaviour. Also, some others are reported at uncorrect line number: line 70 column 92 : "1758" is not of the type : simpleType http://www.w3.org/2001/XMLSchema:gYear.
Here are also some kind of errors reported i would like to discuss, as they seems curious for me: 1) "1758" not of type gYear, occuring at line 243 Message: "1758" is not of the type : simpleType http://www.w3.org/2001/XMLSchema:gYear. Discussion: Quoting specification at http://www.w3.org/TR/xmlschema-2/#gYear : For example, to indicate 1999, one would write: 1999. So, i disagree with this one 2) Overlapping element declaration, occuring at line 243 Message Ambiguous content model : the following particles overlap : In super type: <element maxOccurs="1" minOccurs="0" name="year" type="gYear" xmlns="http://www.w3.org/2001/XMLSchema"/> In derived type: <element maxOccurs="1" minOccurs="1" name="year"> <simpleType> <restriction base="gYear"> <minInclusive value="1758"/> </restriction> </simpleType> </element> Discussion: It was an attempt for me to derive a type by extension (adding elements), while restricting allowed values on some of inherited elements. In this case, an Event can occurs anytime, but a NameCreationEvent can only occurs after 1758. I agree it's standard OO design pattern, but not necessarily legal in XML schema. So I think i'm wrong, but i don't know how to do it otherwise :-) 3) No corresponding element when depth is variable, occuring at line 427 and 432 Message: No node in element http://lis.snv.jussieu.fr/~rousse/osis/model:dataset corresponds to <selector xpath="model:data/*/model:author"/> Discussion: The * seems to confuse the checker, as model:author element does occurs, for instance model:data/model:names/model:name/model:authority/model:author 4) No corresponding element in base type, occuring at line 462, 467 and 472 Message: No node in element http://lis.snv.jussieu.fr/~rousse/osis/model:dataset corresponds to <selector xpath="model:data/model:publications/model:publication/model:publisher"/> Discussion: The specified element does not exist for the base type, but for a derivated type only, used with the same element and a xsi:type attribute -- Guillaume Rousse <[EMAIL PROTECTED]> GPG key http://bohm.snv.jussieu.fr/~rousse/gpgkey.html --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
