-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XSD: questions about occurences #1513
Comments
In this case, positive infinity ( Line 509 in 5b6daa0
|
Yes. More than implies, the documentation states: Line 505 in 5b6daa0
The other definition of
Lines 844 to 853 in 5b6daa0
|
Was this answered for question 2? Lines 502 to 508 in 5b6daa0
Lines 837 to 843 in 5b6daa0
Lines 1034 to 1041 in 5b6daa0
In this last case, the existing documentation:
could be changed. Perhaps this replacement is more clear?
|
Yes. Lines 494 to 501 in 5b6daa0
(and two other identical instances). The only use I see in any class definition is (base) prjemian@arf:~/.../NeXus/definitions$ git grep " recommended=\"false\""
(base) prjemian@arf:~/.../NeXus/definitions$ git grep " recommended=\"true\"" | wc -l
826
(base) prjemian@arf:~/.../NeXus/definitions$ |
Nothing. No commitment whatsoever. As I recall, attribute One such example is for a definitions/applications/NXmx.nxdl.xml Line 488 in 5b6daa0
Follow this search for some history: https://github.com/search?q=repo%3Anexusformat%2Fdefinitions+recommended++&type=pullrequests&state=closed |
So
|
Only if the |
"optional" is a synonym for minOccurs=0. Does this mean?
Can we say this instead of the synonym statement (which I don't understand)? |
Again, try to validate the |
If it is just a change in the documentation, yes. Looks like that makes it clearer. |
Is Lines 1046 to 1065 in 5b6daa0
Looks as if our rules define |
<xs:complexType name="groupType">
<xs:attribute name="maxOccurs" use="optional" type="nx:nonNegativeUnbounded">
<xs:complexType name="fieldType">
<xs:complexContent>
<xs:extension base="nx:basicComponent">
<xs:attribute name="maxOccurs" use="optional" default="1" type="nx:nonNegativeUnbounded"> Maybe suggestion is that |
Agreed. We might need to keep up with the standard on flexible names. Decisions about these attributes should be reviewed. |
For reference, here is a table of permutations with the default value in bold. This is for fields. For groups maxOccurs does not seem to have a default (although @prjemian says it is "unbounded": #1513 (comment))
|
maxOccurs
does not have a default. So what does it mean when not provided?optional="true"
implyminOccurs=0
? Does it says something aboutmaxOccurs
?optional="false"
implyminOccurs=1
orminOccurs>=1
? Does it says something aboutmaxOccurs
?recommended="true"
implyoptional="true"
?recommended="false"
imply?The text was updated successfully, but these errors were encountered: