-
Notifications
You must be signed in to change notification settings - Fork 398
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
clarify error about XML ID #533
Comments
Hi Tzviya, A colon is a valid character in an xml name, though; it's xml namespaces that assigns it a purpose. To exclude it as invalid, It has to be singled out. Matt |
Makes sense, but I git this error only on ids with hashes (abd no colons)
|
Right, it's explaining the production rule you have to follow for them, not telling you what specific character is wrong. But you can't remove that exclusion without requiring people to go look up what an ID is supposed to conform to. I don't think epucheck's ID validation rules try to single out the offending character(s), but I'll let others speak to whether that's feasible. Matt |
I don't think we can single out the offending character. As far as I know, this message is built in the 3d party RelaxNG schema validator (Jing). |
I received this error about ncx "Error while parsing file 'value of attribute "id" is invalid; must be an XML name without colons'." The ID in ncx was the same as the path to the content ("L1-ESN2014J-R12.xhtml#r12-sec-0003). The hash triggered the error. (Earlier IDs included hyphens, and no error reported). A clearer error message that does not single out colon would be helpful. There are many disallowed characters in XML IDs (http://www.w3.org/TR/REC-xml/#sec-common-syn).
The text was updated successfully, but these errors were encountered: