04-10-2014, 08:44 AM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Apr 2014
Device: Kindle Fire
|
A problem with my link to the style sheet
I have built several e-books with Sigil, but now encounter an error that baffles me. When I run Flight Crew, I get this error for every single file:
element 'link' is not allowed for content model '(#PCDATA)' referring to this line in the <head>: <link href="../Styles/epub.css" rel="stylesheet" type="text/css" /> which is identical to the style sheet link in my other books. Where did I go wrong? Thanks! |
04-10-2014, 09:16 AM | #2 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Is the <link> tag positioned correctly? Did you not accidentally put it between the <body> tags?
|
Advert | |
|
04-10-2014, 10:55 AM | #3 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Apr 2014
Device: Kindle Fire
|
Quote:
<?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link href="../Styles/hawks.css" rel="stylesheet" type="text/css" /> </head> <body> etc. |
|
04-10-2014, 12:03 PM | #4 | |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
I copy your code exactly (and create a hawks.css file) and paste it into a new Sigil epub and don't get any errors except for the one about "missing elements in content model" (which is because of the missing title element). |
|
04-10-2014, 04:18 PM | #5 |
Junior Member
Posts: 4
Karma: 10
Join Date: Apr 2014
Device: Kindle Fire
|
I put in a title and got the same set of errors. Then I realized that one file (the first) was actually not on the list, and that was the one I had copied for you. The others had one additional line, preceding the link to the style sheet, viz:
<style type="text/css"> So I see that the "type" was stated twice, once in that line and again in the actual link to the style sheet. I removed the line in 12 files, ran Flight Crew, and got No problems found! So thank you! All is now well. (I never got an error about the missing title, but perhaps I would have done on epubcheck.) |
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I repace a Style Sheet? | phossler | Editor | 13 | 12-24-2013 11:43 AM |
Print style sheet | ronaldl | Sigil | 2 | 10-29-2012 04:32 PM |
How to link the style sheet in Sigil? | JJ Joseph | Sigil | 6 | 06-15-2012 12:49 AM |
Style Sheet editor? | GraciousMe | Sigil | 6 | 06-04-2012 03:06 PM |
Missing style sheet | mauvais | Barnes & Noble NOOK | 3 | 12-05-2011 06:29 PM |