![]() |
#1 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,055
Karma: 11391181
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
attribute 'lang' error schema not satisfied
I have here an epub, obviously created with Sigil and Calibre. At running FlightCrew, I receive multiple errors of this type:
Quote:
Quote:
The encoding looks like this: Quote:
There are no interferences to the readability of the book; in epubcheck, there don't even appear error messages. But, anyway, I would like to know what's wrong there. Is there a crack online who could help? Thanks in advance! |
|||
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
It should be <span lang="it">, although I would set it in the opf if it is for all content.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,055
Karma: 11391181
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
thank you, Toxaris, I had forgotten to say that, to set the declaration lowercase, was one of the first things I tried, but to no avail. It seems, besides, that this kind of declaration is not case-sensitive, but I'm no expert. At the spots of further occurence of the error messages, there are f. ex "FR-CA", which I changed into "fr-CA" or "fr-ca", all without effect.
The spans are there, because the setting into a different language occurs, indeed, only exceptionally. Thus, the spans seem correct to me, so far. |
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Well, you can of course also use <span xml:lang="it">. That one is valid for XML. That one will validate.
According to the W3 both are valid for XHTML, but the xml:lang seems to be the better one to use. |
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,055
Karma: 11391181
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Yep, this did it! I hadn't found any restriction on this either.Maybe it's just a FlightCrew speciality.
Anyway, I hope this will help me for my own books in the future! Thank you once more! |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,055
Karma: 11391181
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Addition: I noticed that FlightCrew even produces error messages, when the language declaration in the head section of a html is like this:
Code:
... lang="de" xml:lang="de" Only for people with the same problem. |
![]() |
![]() |
![]() |
#7 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 557
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
|
Code:
lang="de" Code:
xml:lang="de" |
![]() |
![]() |
![]() |
#8 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
|
|
![]() |
![]() |
![]() |
#9 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 557
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
|
Quote:
Anyway you could be right: the latest version of XHTML1.1 says: "This document supersedes the previous edition of XHTML 1.1. It reflects clarifications and corrections as a result of many years of use by the community. It also includes an XML Schema implementation of the language, and integrates the lang attribute to increase compatibility with User Agents and Assistive Technologies". So it seems the "lang" support has changed in time. My old Oxygen validator do not allow the lang attribute, but the last epubcheck allows it. |
|
![]() |
![]() |
![]() |
#10 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,055
Karma: 11391181
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
In my case, both declarations were included in the "head" sector of the html; the error message came in spite of the "correct" one beeing as well present.
And while doitsu's epubcheck accepted this, it was only Flightcrew that sensitive enough. |
![]() |
![]() |
![]() |
#11 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,725
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
BTW, the IDPF actually recommends that you use both both the lang and xml:lang attributes "for optimal accessibility." |
|
![]() |
![]() |
![]() |
#12 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,724
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
If you find things that FC contradicts with EC or that EC reports as an error and FC doesn't or that FC reports as an error and EC does not, you might want to report these things so FC can be updated.
|
![]() |
![]() |
![]() |
#13 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,725
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Reporting FlightCrew bugs ẃould be rather pointless, since FlightCrew hasn't been updated since 2011 and neither the original developer nor the current maintainers will fix any bugs.
|
![]() |
![]() |
![]() |
#14 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,724
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#15 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,725
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Regex_function: attribute error | DrChiper | Calibre | 2 | 11-21-2014 03:30 AM |
Attribute Error on NoneType??? | phossler | Editor | 6 | 05-18-2014 10:21 AM |
p attribute error on validation | landed | Calibre | 2 | 02-13-2011 11:15 AM |
Error: malformed database schema (books_insert_trg) | cbatalla | Calibre | 4 | 05-08-2010 01:02 PM |
Attribute error? | jusmee | Calibre | 2 | 12-15-2009 08:22 PM |