![]() |
#1 |
lw
![]() Posts: 2
Karma: 10
Join Date: Oct 2011
Device: ipad
|
'apos' error
Hi,
When I validate my epub file, it gives me an error ERROR: /OEBPS/content.opf(6): Entity 'apos' is undeclared. The only place I find 'apos' is in the content.opf file. There is an apostrophe in the title. The code is as follows: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <package xmlns="http://www.idpf.org/2007/opf" xmlns:dc="http://purl.org/dc/elements/1.1/" unique-identifier="bookid" version="2.0"> <metadata> <meta name="generator" content="Adobe InDesign"/> <meta name="cover" content="x5150.png"/> <dc:title>A Country Doctor's Journal</dc:title> I changed it to see what would happen to this: <dc:title>A Country Doctors Journal</dc:title> However, I'm still getting the same error. Does anyone know what I'm missing and how to fix it? Thanks, lw |
![]() |
![]() |
![]() |
#2 |
lw
![]() Posts: 2
Karma: 10
Join Date: Oct 2011
Device: ipad
|
FYI: In case anyone encounters this error, I did get to the bottom of it. In the file info. description I removed the apostrophe form the document title and author title. That solved the problem. I tried changing the code but it still gave me an error. $apos; is valid XHTML, not HTML. I tried HTML code $#39; but I still got an error.
lw |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,585
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Simply replace $apos; with an actual apostrophe or a typographic apostrophe (’ )
|
![]() |
![]() |
![]() |
#4 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
In the OPF and NCX files you cannot use named entities, anyway.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
calibre, version 0.8.8 ERROR: Error: Error communicating with device no such column: | e-bookuser | Devices | 1 | 07-03-2011 04:09 PM |
Free (Kindle) Compete, Play, Win: Finding Your Best Competitive Self by David Apos | arcadata | Deals and Resources (No Self-Promotion or Affiliate Links) | 1 | 07-01-2011 03:19 AM |
How do I prevent ' from replacing apostrophes? | ReD | Calibre | 6 | 10-24-2010 12:16 AM |
error message: ERROR ITMS-4099: "Invalid ISBN: [#] at Book (MZItmspBookPac | NewDay | ePub | 3 | 10-07-2010 01:47 PM |
ERROR: Error: Error communicating with device | JWood | Calibre | 10 | 04-20-2010 07:28 PM |