Skip to content

Conversation

@woutdenolf
Copy link
Contributor

@woutdenolf woutdenolf commented Nov 23, 2024

The default of maxOccurs for groups seems to "unbounded": #1513 (comment). I'm not sure where this comes from though.

The default of maxOccurs for fields seems to be 1.

So the default is different from groups and fields which surprises me.

@woutdenolf woutdenolf linked an issue Nov 23, 2024 that may be closed by this pull request
@PeterC-DLS
Copy link
Contributor

I think this makes sense as you can have many groups of the same class (for certain classes) whereas, with specified field names, you can only at most one in a given group.

@prjemian
Copy link
Contributor

seems to "unbounded"

The XSD file uses nx:nonNegativeUnbounded. This is unbounded. No question to it.

@woutdenolf
Copy link
Contributor Author

No question to it.

How is that? nx:nonNegativeUnbounded is just the type. How does the type determine what the default value is?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

XSD: questions about occurences

4 participants