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

Schema validity and id attributes #84

Open
jonathanrobie opened this issue Jul 17, 2021 · 4 comments
Open

Schema validity and id attributes #84

jonathanrobie opened this issue Jul 17, 2021 · 4 comments

Comments

@jonathanrobie
Copy link
Contributor

When I validate against the OSIS schema using xmllint, I get validation errors for the id attributes on words:

1Kgs.xml:321: element w: Schemas validity error : Element '{http://www.bibletechnologies.net/2003/OSIS/namespace}w', attribute 'id': The attribute 'id' is not allowed.
1Kgs.xml:322: element w: Schemas validity error : Element '{http://www.bibletechnologies.net/2003/OSIS/namespace}w', attribute 'id': The attribute 'id' is not allowed.
!!! SNIP !!!

Am I missing something?

@DavidTroidl
Copy link
Member

I have an email thread going on this issue, trying to resolve the validation problem. The @id in OSIS is capitalized, but the main issue is that XML IDs are not allowed to start with a number. I did a temporary correction for this when I validated 1Sam to check the two token issue.

@jonathanrobie
Copy link
Contributor Author

So perhaps a global search/replace that replaces id=" with ID="id would do the trick?

@DavidTroidl
Copy link
Member

Not exactly. I replace: id=" with: ID="a, for a temporary check. I am still conversing with the authors of the IDs to see how they can be adjusted.

@DavidTroidl
Copy link
Member

Sorry, I missed the point. Yes, yours would work.

jonathanrobie added a commit to biblicalhumanities/morphhb that referenced this issue Jul 18, 2021
… added a leading alphabetic character, (2) single values for @type attribute in Ketiv readings.  See openscriptures#84, openscriptures#80.
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

2 participants