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

Ids mapped to String type not NCName #5

Open
GoogleCodeExporter opened this issue Feb 2, 2016 · 0 comments
Open

Ids mapped to String type not NCName #5

GoogleCodeExporter opened this issue Feb 2, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

While developing jmzquantml, we noticed that ID and IDREF have to be of type: 
NCName http://books.xmlschemata.org/relaxng/ch19-77215.html, which places some 
restrictions on strings.

I think they cannot contain colons and they cannot start with an integer. We 
should (perhaps) build an ID checker into jmzml and jmzquantml e.g. 
http://www.jarvana.com/jarvana/view/axis/axis/1.4/axis-1.4-sources.jar!/org/apac
he/axis/types/NCName.java?format=ok

otherwise we could create invalid XML files using the APIs. This is not so 
unlikely, given that someone might create an ID containing colons.

This is not a problem for mzIdentML that uses key, keyref on Strings.

cheers
Andy


Original issue reported on code.google.com by andrewro...@googlemail.com on 6 Jul 2012 at 12:45

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

No branches or pull requests

1 participant