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

Forbid colon as first character in XML identifiers #630

Closed
lognaturel opened this issue Nov 21, 2022 · 1 comment · Fixed by #736
Closed

Forbid colon as first character in XML identifiers #630

lognaturel opened this issue Nov 21, 2022 · 1 comment · Fixed by #736
Milestone

Comments

@lognaturel
Copy link
Contributor

lognaturel commented Nov 21, 2022

Colons are currently allowed as the first character of XML identifiers: https://github.com/XLSForm/pyxform/blob/master/pyxform/xlsparseutils.py#L8

This is consistent with https://www.w3.org/TR/REC-xml/#NT-NameStartChar but doesn't really make sense in real usage as described at https://stackoverflow.com/a/40446164/137744

We should probably forbid colons in the identifiers at all since we don't really support namespacing of body elements (#105 (comment)).

@lognaturel
Copy link
Contributor Author

Validate doesn't allow leading colons anyway so we really should update the message and logic.

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 a pull request may close this issue.

1 participant