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

Define a more restrictive type for Issuer attributes #44

Open
cdanger opened this issue Jan 12, 2025 · 0 comments
Open

Define a more restrictive type for Issuer attributes #44

cdanger opened this issue Jan 12, 2025 · 0 comments

Comments

@cdanger
Copy link

cdanger commented Jan 12, 2025

The attribute Issuer is defined as xs:string in Attribute, AttributeDesignator, AttributeAssignment, AttributeAssignmentExpression, and MissingAttributeDetail types. Like in #42, xs:string allows any XML text to be used as Issuer, including an empty string "" or a string starting/ending with whitespace(s) or containing a sequence of multiple whitespaces, or a string filled with whitespaces.
More appropriate types like xs:token or a new non-empty non-whitespace string type, i.e. using pattern [^\s]+, could avoid that.

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

No branches or pull requests

1 participant