Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 10-03-2024, 07:01 AM   #1
lucie
Member
lucie began at the beginning.
 
Posts: 13
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 10-03-2024, 07: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,220
Karma: 19000635
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; 10-03-2024 at 07:47 AM.
Turtle91 is offline   Reply With Quote
Advert
Old 10-04-2024, 05:02 AM   #3
lucie
Member
lucie began at the beginning.
 
Posts: 13
Karma: 10
Join Date: May 2024
Device: none
Thanks. I ended up changing the font, and adding the file to sigal, and made my way through the errors.

Google Doc was great for formatting, then I used Sigal to tidy things up.

Got there in the end.
lucie is offline   Reply With Quote
Old 10-04-2024, 07:03 AM   #4
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,609
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by lucie View Post
Google Doc was great for formatting, then I used Sigal to tidy things up.
For your words, I'm afraid of you are not formatting your epub by mean of css styles. If that is your case (and I believe it is) then you'll have a lot of issues if in a future you want to modify your formats.
RbnJrg is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 04:00 AM.


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