![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: May 2017
Device: Nook
|
Interactive Epubs: XML, HTML, XHTML
Which format is best for publishing interactive epubs, XML, HTML, or XHTML?
What are the pros and cons to each of them? |
![]() |
![]() |
![]() |
#2 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,616
Karma: 168431739
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
The only use I've seen of XML in epubs required converting XML to HTML which all too often was not a pretty sight. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
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
|
pure HTML is not good for anything anymore. You need to close the tags. XHTML is a predefined version of XML. It is the defined standard for ePub both version 2 and version 3. Some arbitrary XML implementation is impossible to use without an app that can understand the definitions. There are files inside the ePub structure that are XML. You really need to read our wiki for those terms. Our wiki provides data that is specifically targeted at eBooks. There is a link at the top of the page.
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,015
Karma: 89771379
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Interactivity is handled in EPUB3 via javascript. Support for this varies across book sellers.
The best way to go about this will depend on where you plan to publish/sell your book. |
![]() |
![]() |
![]() |
#5 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 557
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
|
In ePub/KF8 you can only use hypertext in XHTML. In EPUB3 you can use XML SMIL for media overlay, XHTML5 for audio and video, and Javascript for everything else. You can also use the SVG XML format for vector graphics, but SMIL animations are not allowed in ePub2/EPUB3, only Javascript ones in EPUB3.
|
![]() |
![]() |
Advert | |
|
![]() |
Tags |
html, interactive pubs, xhtml, xml |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Some files.html & toc.xhtml (also Cover.xhtml) | chaot | Workshop | 23 | 02-13-2017 12:20 PM |
Error: Cannot split: ......xhtml XML is not well formed | Alt68er | Sigil | 2 | 04-23-2014 03:00 AM |
questions on self-closing tags and legal xhtml in epubs | KevinH | ePub | 5 | 04-23-2012 10:12 PM |
0.2.1 bug? (3 .xml files inserted into epubs) | Stinger | Sigil | 6 | 06-20-2010 09:25 PM |
xml or xhtml to basic html converter | remjax | Reading and Management | 11 | 07-14-2009 09:04 AM |