Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old Today, 06:01 AM   #1
lucie
Member
lucie began at the beginning.
 
Posts: 12
Karma: 10
Join Date: May 2024
Device: none
Google doc - validation errors

Hey,

So I've just formatted my second ebook, the first time I did it, I used indesign and sigil. This time I have used Google Docs.

All seems fine in the kindle previewer.

I ran it through an epub validator and got these errrors/warning

_____

ERROR(RSC-005): /GoogleDoc/ebookLetsNotSugarcoatIt.xhtml(104,59): Error while parsing file: element "hr" not allowed here; expected the element end-tag, text, element "a", "abbr", "area", "audio", "b", "bdi", "bdo", "br", "button", "canvas", "cite", "code", "data", "datalist", "del", "dfn", "em", "embed", "i", "iframe", "img", "input", "ins", "kbd", "label", "link", "map", "mark", "meta", "meter", "ns1:switch", "ns2:math", "ns3:svg", "object", "output", "picture", "progress", "q", "ruby", "s", "samp", "script", "select", "small", "span", "strong", "sub", "sup", "template", "textarea", "time", "u", "var", "video" or "wbr" (with xmlns:ns1="http://www.idpf.org/2007/ops" xmlns:ns2="http://www.w3.org/1998/Math/MathML" xmlns:ns3="http://www.w3.org/2000/svg") or an element from another namespace

ERROR(RSC-006): /GoogleDoc/ebookLetsNotSugarcoatIt.xhtml(5,9): Remote resource reference is not allowed in this context; resource "https://themes.googleusercontent.com/fonts/css?kit=fpjTOVmNbO4Lz34iLyptLUXza5VhXqVC6o75Eld_V9 8" must be located in the EPUB container.

WARNING(RSC-017): /GoogleDoc/nav.xhtml(2,9): Warning while parsing file: The "head" element should have a "title" child element.



__________

Can anyone give me some help on getting these fixed?

Cheers
lucie is offline   Reply With Quote
Old Today, 06:29 AM   #2
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,194
Karma: 18843349
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by lucie View Post
ERROR(RSC-005): /GoogleDoc/ebookLetsNotSugarcoatIt.xhtml(104,59): Error while parsing file: element "hr" not allowed here; expected the element end-tag, text, element "a", "abbr", "area", "audio", "b", "bdi", "bdo", "br", "button", "canvas", "cite", "code", "data", "datalist", "del", "dfn", "em", "embed", "i", "iframe", "img", "input", "ins", "kbd", "label", "link", "map", "mark", "meta", "meter", "ns1:switch", "ns2:math", "ns3:svg", "object", "output", "picture", "progress", "q", "ruby", "s", "samp", "script", "select", "small", "span", "strong", "sub", "sup", "template", "textarea", "time", "u", "var", "video" or "wbr" (with xmlns:ns1="http://www.idpf.org/2007/ops" xmlns:ns2="http://www.w3.org/1998/Math/MathML" xmlns:ns3="http://www.w3.org/2000/svg") or an element from another namespace

It looks like you are trying to put an <hr/> tag somewhere it is not allowed...like inside of a <p> etc. I would check on/around line 104, column 59 of the ebookLetsNotSugarcoatIt.xhtml file. Here is a tutorial page on <hr/>


Quote:
Originally Posted by lucie View Post
ERROR(RSC-006): /GoogleDoc/ebookLetsNotSugarcoatIt.xhtml(5,9): Remote resource reference is not allowed in this context; resource "https://themes.googleusercontent.com/fonts/css?kit=fpjTOVmNbO4Lz34iLyptLUXza5VhXqVC6o75Eld_V9 8" must be located in the EPUB container.

You can't have an external reference to a Font...all files are supposed to be contained inside the ePub (zip file) so that you do not need internet access to read the book. I'd recommend putting a copy of the font file (make sure you follow any/all licensing requirements) inside the ePub and then reference the proper location inside your css file.


Quote:
Originally Posted by lucie View Post
WARNING(RSC-017): /GoogleDoc/nav.xhtml(2,9): Warning while parsing file: The "head" element should have a "title" child element.

It looks like your nav.xhtml file is missing the <title> from the header section. A Proper xhtml file has a document title in the header section at the top of each file...something like this:


Code:
<head>
<title>This is the name of your document/chapter/book</title>
</head>
Unfortunately, I am not a google docs expert, so I can't help you with any automated way to do any of the above. I use Sigil and/or Calibre Editor to handle all the nitnoid details like that.


Cheers!

Last edited by Turtle91; Today at 06:47 AM.
Turtle91 is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Validation errors azupak Sigil 23 05-05-2015 09:43 AM
Epub validation errors adetutuijose ePub 19 11-11-2013 07:36 PM
Validation Errors mpresley ePub 7 10-27-2011 02:41 AM
Help with validation errors AThirstyMind ePub 2 05-13-2011 06:08 PM
Validation Errors luthar28 ePub 13 08-10-2010 12:24 PM


All times are GMT -4. The time now is 06:30 PM.


MobileRead.com is a privately owned, operated and funded community.