11-01-2014, 10:03 PM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Nov 2014
Device: none
|
InDesign - ePub export html files instead of xhtml
When I export my ePub book and crack it open the markup files are in xhtml. Whereas all the free books that I've downloaded on gutenberg.org have had html files inside them. Is there an option in InDesign to export the files as html? In case you were wondering why; I have written some JavaScript do do some ePub parsing and the javascript evaluate function works differently with xhtml.
|
11-02-2014, 01:46 AM | #2 |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
The ePub standard requires xhtml 1.1 per the specification. This mean well formed tags in all places. Gutenberg text are likely xhtml even if their extensions are htm or html. The extension does not matter.
Dale |
Advert | |
|
11-02-2014, 08:32 AM | #3 |
Addict
Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
There is an option to export to html file in CC.
|
02-05-2015, 10:53 PM | #4 |
Junior Member
Posts: 2
Karma: 10
Join Date: Nov 2014
Device: none
|
|
02-06-2015, 01:09 AM | #5 |
Wizard
Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
|
So far as I know, correct me if I'm wrong, it is the following lines at the beginning of each file which sets the HTML as XHTML 1.1
<?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"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> I haven't bothered to find how to make the HTML editor I use produce the files as .xhtml. But they still work and validate to W3C standards and with EPUB-Checker. |
Advert | |
|
02-06-2015, 01:47 AM | #6 |
Ex-Helpdesk Junkie
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
The ereader will expect xhtml whether it is marked that way or not.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is there a way to export .xhtml files from Sigil? | Derek R | Sigil | 13 | 03-28-2013 07:28 AM |
Indesign CS5.5 creates epub with *.html instead of *.xhtml | megabusybee | ePub | 2 | 12-01-2011 01:48 PM |
Export to ePub from InDesign CS5 | gardefjord | ePub | 42 | 10-29-2011 10:42 AM |
InDesign export as ePub? | Alda | General Discussions | 3 | 01-24-2011 12:59 PM |
EPUB Expert Needed: Cant properly export epub from InDesign | crottmann | ePub | 17 | 08-27-2010 10:23 AM |