Skip to content
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

maxOccurs is optional which means it has a default. #1515

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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
3 participants