Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 04-10-2014, 08:44 AM   #1
Warbird Books
Junior Member
Warbird Books began at the beginning.
 
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!
Warbird Books is offline   Reply With Quote
Old 04-10-2014, 09:16 AM   #2
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
Is the <link> tag positioned correctly? Did you not accidentally put it between the <body> tags?
Toxaris is offline   Reply With Quote
Old 04-10-2014, 10:55 AM   #3
Warbird Books
Junior Member
Warbird Books began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2014
Device: Kindle Fire
Quote:
Originally Posted by Toxaris View Post
Is the <link> tag positioned correctly? Did you not accidentally put it between the <body> tags?
No, it's up there in the head. Here is the entire start of each file:

<?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.
Warbird Books is offline   Reply With Quote
Old 04-10-2014, 12:03 PM   #4
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,545
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Warbird Books View Post
Here is the entire start of each file:

<?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.
You truly have no title element at all in any of your files?

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).
DiapDealer is offline   Reply With Quote
Old 04-10-2014, 04:18 PM   #5
Warbird Books
Junior Member
Warbird Books began at the beginning.
 
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.)
Warbird Books is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 02:31 AM.


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