mxp1988 / epubcheck

Automatically exported from code.google.com/p/epubcheck
MIT License
0 stars 0 forks source link

wrong error message in 3.0-RC1 #224

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Checking an ePub file, I got the following error message:

ERROR: Όμηρος.epub/OPS/ilia__h_9.xhtml(147,98): value of attribute "id" 
is invalid; must be an XML name without colons

Well, checking other characteristics for valid ID values, according to 
http://www.w3.org/TR/REC-xml/#NT-NameStartChar, it seems that an ID value can 
start with and contain a colon?

Which is wrong: the error message or myself?

Many thanks for your help,

Pablo

Original issue reported on code.google.com by google-c...@pragmata.tk on 25 Nov 2012 at 9:38

GoogleCodeExporter commented 8 years ago
Hi Pablo,
we use XSD datatypes for the XHTML/XML tokens that have predefiend types. And 
there, its defined as an NCNAME, not a NAME. 

According to http://www.w3.org/TR/xmlschema11-2/#ID: " The ·value space· of 
ID is the set of all strings that ·match· the NCName production in 
[Namespaces in XML]."

I guess the mismatch is for historical reasons, not sure. 

Original comment by markus.g...@gmail.com on 25 Nov 2012 at 10:28