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 09-27-2013, 05:36 AM   #1
Leonatus
Evangelist
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 402
Karma: 3253326
Join Date: Mar 2013
Location: Berlin, Germany
Device: Kobo Touch
W3C: at-rule namespace not implemented

At the end of editing a book with Sigil, I like to validate epubs with W3C also. There often appears the error: "Sorry, the at-rule @namespace is not
implemented."

On the top of my css appears: @namespace h "http://www.w3.org/1999/xhtml.

The books are readable, but I would like a correctly formed epub. Only that I have no idea what I'm doing wrong. Someone can tell me what I have to do, please?
Leonatus is offline   Reply With Quote
Old 09-27-2013, 06:54 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,195
Karma: 105839419
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Remove the @namespace. It should not be necessary.
Toxaris is offline   Reply With Quote
Old 09-27-2013, 09:08 AM   #3
Leonatus
Evangelist
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 402
Karma: 3253326
Join Date: Mar 2013
Location: Berlin, Germany
Device: Kobo Touch
Whee! That worked: "No error found". Thanks!
Leonatus is offline   Reply With Quote
Old 10-10-2016, 02:50 PM   #4
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 1,648
Karma: 3738738
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch Sony PRS300
Quote:
Originally Posted by Toxaris View Post
Remove the @namespace. It should not be necessary.
Hey Toxaris. I ran into the same issue. (screenshot 193). Being a non-techie, so that just means I should remove just
Code:
@namespace
from the stylesheet? (screenshot 194)

And maybe, what purpose did it serve?

Thanks.

Actually I just tested it and it wanted me to remove:

Code:
@namespace "http://www.w3.org/1999/xhtml";
And then it showed the epub passed.
Attached Thumbnails
Click image for larger version

Name:	Selection_193.png
Views:	35
Size:	75.8 KB
ID:	152277   Click image for larger version

Name:	Selection_194.png
Views:	36
Size:	56.3 KB
ID:	152278  

Last edited by Gregg Bell; 10-10-2016 at 03:04 PM. Reason: tested something
Gregg Bell is offline   Reply With Quote
Old 10-11-2016, 06:24 AM   #5
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 3,398
Karma: 8122516
Join Date: Dec 2010
Device: Kindle PW2
@Gregg Bell:

AFAIK, CSS namespace declarations are a CSS3-only feature and will always generate W3C error messages if the selected Stylesheet Validation Level is CSS Level 2.1.

You could theoretically change the CSS level via Edit > Preferences > Settings > General Settings, and if you change the value to CSS Level 3, the W3C validator will no longer display a namespace error message. However, selecting CSS Level 3 isn't recommended for epub2 book stylesheets, because the epub2 standard was based on CSS Level 2.1 and some older epub engines might not support CSS3-only elements.

Therefore it's better to simply delete CSS namespace declarations in epub2 books, unless the (X)HTML files contain non-standard namespace declarations.

AFAIK, CSS namespace declarations are only required for epub3 book stylesheets and only if you want to select elements with epub:type attributes.

For example the following stylesheet code:

Code:
@namespace epub "http://www.idpf.org/2007/ops";

*[epub|type='pagebreak'] { display: none; }
will hide epub3 page number targets formatted as:

Code:
<span epub:type="pagebreak" id="page1">1</span>

Last edited by Doitsu; 10-12-2016 at 02:48 AM.
Doitsu is offline   Reply With Quote
Old 10-11-2016, 10:46 AM   #6
Leonatus
Evangelist
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 402
Karma: 3253326
Join Date: Mar 2013
Location: Berlin, Germany
Device: Kobo Touch
@Doitsu
Thank you for this explanation! I have always been wondering what the namespace declaration should be good for.
Leonatus is offline   Reply With Quote
Old 10-11-2016, 11:43 PM   #7
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 1,648
Karma: 3738738
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch Sony PRS300
Quote:
Originally Posted by Doitsu View Post
@Gregg Bell:

AFAIK, CSS namespace declarations are a CSS3-only feature and will always generate W3C error messages if the selected Stylesheet Validation Level is CSS Level 2.1.

You could theoretically change the CSS level via Edit > Preferences > Settings > General Settings, and if you change the value to CSS Level 3, the W3C validator will no longer display a namespace error message. However, selecting CSS Level 3 isn't recommended for epub2 book stylesheets, because the epub2 standard was based on CSS Level 2.1 and some older epub engines might not support CSS3-only elements.

Therefore it's better to simply delete CSS namespace declarations in epub2 books, unless the (X)HTML files contain non-standard namespace declarations.

AFAIK, CSS namespace declarations are only required for epub3 book stylesheets and only if you want select elements with epub:type attributes.

For example the following stylesheet code:

Code:
@namespace epub "http://www.idpf.org/2007/ops";

*[epub|type='pagebreak'] { display: none; }
will hide epub3 page number targets formatted as:

Code:
<span epub:type="pagebreak" id="page1">1</span>
Thanks Doitsu. Yeah, I don't want to mess with the preferences so I'll just delete the namespace. But I do need to delete the below:

Code:
@namespace "http://www.w3.org/1999/xhtml";
correct?

Not just:

Code:
@namespace
correct?
Gregg Bell is offline   Reply With Quote
Old 10-12-2016, 02:35 AM   #8
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 3,398
Karma: 8122516
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Gregg Bell View Post
Thanks Doitsu. Yeah, I don't want to mess with the preferences so I'll just delete the namespace. But I do need to delete the below:

Code:
@namespace "http://www.w3.org/1999/xhtml";
correct?
Yes, you'll need to delete the complete line.
Doitsu is offline   Reply With Quote
Old 10-12-2016, 10:24 PM   #9
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 1,648
Karma: 3738738
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch Sony PRS300
Quote:
Originally Posted by Doitsu View Post
Yes, you'll need to delete the complete line.
Thanks Doitsu. Appreciate it.
Gregg Bell 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
W3C CSS Validation opens with Notepad++ Moonraker Sigil 4 05-25-2013 02:00 PM
W3C css Validator problem? pete6055 Sigil 14 02-28-2013 10:19 AM
W3C Validation says: Elements are undefined verydeepwater ePub 7 01-11-2013 06:09 AM
How neccessary is namespace? GraciousMe Sigil 2 11-10-2012 05:02 AM
Namespace declaration ChrisI Sigil 1 08-22-2010 07:02 AM


All times are GMT -4. The time now is 12:07 PM.


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