View Full Version : Validation error

04-15-2011, 08:20 AM
I have just validated a book with threepress online using epubcheck and it came back with a list of errors but they are all the same error saying that "value of attribute "name" is invalid; must be an XML NMTOKEN"
I cannot see how I have named the files wrong but obviously I have made the same mistake for each file because it is the same error. I have enclosed a text file of the list. When I validate using Sigil's flightcheck there are no problems. Can anyone help.

04-15-2011, 10:09 AM
It's not the name of the file, but the value of some "name" attribute used inside the file.

First, you should not use "name" for anchors, but "id".
Second, the value can only contain some characters and must start with a letter. The files probably have something like name="12", change it to id="sec12" or similar and it should work (and you should change all references to #12 into #sec12, of course)

04-15-2011, 01:09 PM
Thanks Jelby,
It was something along those lines. Thanks for pointing me in the right direction. It is much appreciated.