08-30-2011, 06:52 AM | #1 |
frumious Bandersnatch
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Flightcrew validation error
When trying to validate an ePUB containing the document below, I get an error:
Code:
Entities.xhtml(2): error 900: internal subset is not allowed when reusing the grammar This is the XHTML file: Code:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" [ <!ENTITY mdash "this is an em-dash"> <!ENTITY sample "some sample entity"> <!ENTITY loq "“"> <!ENTITY roq "”"> <!ENTITY liq "‘"> <!ENTITY riq "’"> <!ENTITY ap "’"> <!ENTITY hellip ".*.*."> ]> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ops="http://www.idpf.org/2007/ops" xml:lang="en"> <head> <title>Custom Entities</title> <link href="../Styles/style-04.css" type="text/css" rel="stylesheet" /> </head> <body> <h1>Custom Entities</h1> </body> </html> |
08-30-2011, 06:58 AM | #2 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Does it render on a reader?
|
08-30-2011, 07:05 AM | #3 |
frumious Bandersnatch
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
I don't know, that will be the test when I can confirm it's a valid ePUB
|
08-30-2011, 12:43 PM | #4 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Sounds logical, but if it works fine in for example ADE, perhaps it will be more clear whether it is a bug or not allowed.
|
08-30-2011, 12:57 PM | #5 |
Resident Curmudgeon
Posts: 73,510
Karma: 126422064
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Give it a go with FlightCrew 0.7.2 and see if you still get the same error message or any error message.
|
08-30-2011, 01:55 PM | #6 | |
frumious Bandersnatch
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Anyway, apparently there was a sample Adobe book using this, see here. |
|
09-01-2011, 08:20 AM | #7 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
This looks like an implementation error. FC caches all the grammars it uses for validation, but the Xerces XML parser does not allow an internal DTD subset when a cached grammar is in use. Grammars are cached for performance reasons.
I've only ever seen one epub in the wild use an internal subset, so I postponed dealing with this. Bottom line: yes, this is an FC error. On the other hand, I'd suggest avoiding internal DTD subsets completely. They're not well supported on Reading Systems. AFAIK, only ADE handled them correctly back when I was testing the XML parsers of the various RS's (although this was more than a year ago). Other RS's were touch-and-go. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Validation Error | Adjust | ePub | 3 | 07-21-2011 12:06 AM |
Validation error | dezignlady | ePub | 4 | 07-20-2011 02:34 AM |
Validation error | soparch | ePub | 2 | 04-15-2011 01:09 PM |
Error during validation | macdafydd | ePub | 19 | 12-01-2010 06:07 PM |
Validation error | rrosenwald | Calibre | 10 | 10-01-2010 11:12 AM |