Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 04-08-2013, 06:41 PM   #1
JimmyG
Zealot
JimmyG solves Fermat’s last theorem while doing the crossword.JimmyG solves Fermat’s last theorem while doing the crossword.JimmyG solves Fermat’s last theorem while doing the crossword.JimmyG solves Fermat’s last theorem while doing the crossword.JimmyG solves Fermat’s last theorem while doing the crossword.JimmyG solves Fermat’s last theorem while doing the crossword.JimmyG solves Fermat’s last theorem while doing the crossword.JimmyG solves Fermat’s last theorem while doing the crossword.JimmyG solves Fermat’s last theorem while doing the crossword.JimmyG solves Fermat’s last theorem while doing the crossword.JimmyG solves Fermat’s last theorem while doing the crossword.
 
Posts: 119
Karma: 28454
Join Date: Apr 2011
Location: Yuma, AZ
Device: Kindle Touch, Voyage
Importing files

I'm starting a new book, for which I have three html files I've done in other editors. Sigil refused to import them, and advised:
The following files were not loaded due to invalid content or not well formed XML
and for each file it says:
line 1: whitespace expected
The first line of each file is a <!Doctype...
I erased the Doctype line and left the first line blank and it loaded them.
Doesn't every html file start with a Doctype?
JimmyG is offline   Reply With Quote
Old 04-08-2013, 09:47 PM   #2
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
There is probably something wrong with the DOCTYPE, a space where it doesn't mean to be or something of that order.

There is a selection in preferences for pretty print or Tidy at open or save which you can turn on to import flawed files, and then turn back off after you have brought them in.

The DOCTYPE is the same for all epubs, as far as I know, so you can copy the first part of the epub from a valid one and paste it over the problem stuff.
mrmikel is offline   Reply With Quote
Advert
Old 04-09-2013, 07:04 AM   #3
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
A HTML file does not have to start with a DOCTYPE. A XHTML file though...
Toxaris is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing multiple files stosss Sigil 11 12-16-2012 04:52 PM
Importing HTML Files Shadowlane Calibre 1 12-19-2009 03:04 PM
Importing local files within a plugin macr0t0r Plugins 1 11-21-2009 07:41 PM
Importing files onto a Kindle Dahak Amazon Kindle 7 05-19-2009 12:12 AM
Error when importing MobiPocket files. mbovenka Calibre 7 08-16-2008 10:07 AM


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


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