add xsd schema description at xlmns url
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Advanced Comic Book Format |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
So, apparantly it is considered good practice to have an XSD file(XML schema file) at the uri for the name space, which then describes the name space.
So I decided to make one of these for the 1.1 spec. I was able to verify that the acbf files I have lying around are appropriately recognised, except for the places my generator is just plain wrong :p
The XSD can also be really useful for implementers, as they can run the files they make through xmllint with this XSD, or the opposite, run files they want to read through a linter and then verify it is a valid acbf xml file before reading it.
Some important things to note:
1. XML really hates capitalization, so "ACBF" is considered invalid while "acbf" is appropriate, similarly, "True" is not considered a valid boolean value, while "true" is.
2. language codes according to XML need to be seperated with "-" and not "_", so "en-US" and "en-us" are valid, while "en_US" is not.
Anyway, the attached file would go to "http://
Maybe in the future we can alternative schema declaration files, like dtd, or rng, or even jsonld, but I think the xsd is a good start :)
And now I only see that there was already a 1.1 xsd, god, am I dumb.
Still though, adding it to the namespace location might be useful :)