EPub files HTML or XHTML?

Until today, I was exporting ePub files from Pages. It produces XHTML ePub files, which I then edited in BBEdit. The edits worked, but there were myriad other problems, so…
…I bought CS5.5 and…
I noticed several things:
1. InDesign 5.5 doesn't export XHTML formatted files, but HTML.
2. When I checked the syntax of these files in BBEdit, there were the following errors:
     Unknown or invalid DOCTYPE detected; syntax checker will assume "HTML 5".
     Document type doesn't permit attribute "xmlns" within element "<html>".
     Document type doesn't permit attribute "xml:lang" within element "<div>".
3. In addition, when I rezipped and sent the ePub to iBooks, the formatting I'd added wasn't there (though it had previewed perfectly in BBEdit and browsers).
4. I then replaced everything above the opening <head> element with the lines from a Pages-exported file. The error messages disappeared, but the formatting still wasn't there in iBooks.
As a near-novice, I can't figure out what's going on. Is there some kind of mismatch between XHTML and HTML?
Thanks.

For what it's worth, the formatting appeared correctly in iBooks when I replaced this line (which appeared immediately below the <head> element)
     <div id="x03-Preparing.html" xml:lang="en-US">
with this one:
     <div id="x15-Preparing.html" >
(removing: xml:lang="en-US")
The language declaration was already made above. See whole section:
<?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 xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
     <head>
              <title>03 Preparing.html</title>
              <link href="template.css" rel="stylesheet" type="text/css" />
     </head>
     <body>
          <div id="x03-Preparing.html" >… (etc.)
I remain puzzled about HTML vs. XHTML. Liz Castro says the ePub's content files should be in XHTML. Not true?

Similar Messages

  • EPUP 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. 

    You can't change the ePub included file format in InDesign. In ePub html, xhtml and xml is allowed, thats why different ePubs from different vendors can also have different file extensions. You might change your javascript to support html files, or you rename the files within the ePub. In second case, don't forget to adapt the opf, toc and linking within the xhtml files.

  • Creating an epub file from a Framemaker 10 document

    Are there special tools I have to have to turn a Framemaker document into an epub file format?
    Thank you.

    I did some experimenting with this a few months ago.
    The basis of the epub format is XHTML. There are free tools (such as Calibre) that do a good job converting from (X)HTML to epub (and other e-book formats).
    If you have one book to do it is probably quickest just to grab the text and reformat with an HTML editor, then process with Calibre or similar.
    Using other tools, such as Robohelp, MIF2Go, or FrameMaker’s built-in Save as HTML, would take some time to set up properly, and would therefore be worthwhile if you had a number of books to do that were similarly constructed.
    If planning for the future it might be worth considering using XHTML as the base format (i.e. finalising the text in this form) and repurposing either to epub or to print via FrameMaker, or both, as required.
    That was my conclusion, at any rate. You need to look at it in your own context, of course.

  • Smart quotes and em-dashes in epub file

    When I create an epub file from my InDesign book file, I find that sometimes (not always, thought!) my smart quotes and em-dashes revert to gibberish.
    For example, when I open the epub file, the em-dash is fine, but in chapter 2, it changes to —.
    Does anyone know how I might correct this?
    Thanks so much!

    It sounds like somethings wrong with the chapter's character encoding.  The character encoding is declared in the header of the ePub HTML. From ID it's:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    This test has UTF-8 declared in the first line of its source code:
    http://www.zenodesign.com/forum/encodetest/UTF8.html
    And this has no encoding
    http://www.zenodesign.com/forum/encodetest/None.html
    Most browsers let you override or choose the character set, so in Safari if you set the character set to View>Text Encoding>default, you'll see a difference between the above links, but if you set it to Unicode (UTF-8) they both display correctly. In FireFox it's View>Character Encoding.
    You can check and edit the contents of the .epub file by changing the extension from .epub to .zip, and then extracting the contents.

  • Help with numbering lists in Indesign CS5.5 for epub file

    I am working with a book in Indesign CS5.5 to export it as an epub file. I have been working on formatting the text and I have run into a small problem. Throughout the book there are multiple lists within the texts that need to be numbered. Each list, however, must start over at number 1 and not be continued on from the previous list. The lists are all unrelated and I need them to be completely separate. I used "Type", "Bullets and Numbering", then "Apply Numbering" to begin with. This had each list in the correct order. However, I also created a paragraph style with the correct font, size, indentation, and spacing that must be applied to all the lists before exporting. When I do this, everything keeps its correct formatting except that some of the lists continue their numbering from the previous list. For example, on page 1 I might have a list of four things all formatted correctly and number 1 through 4. On page 3, I have another list, of completely unrelated items. I therefore would like this list to be started over at number 1, but when I apply the paragraph style to it, it starts at 5, picking up where the last list left off. I need to keep these as the assigned paragraph style but it messes up the numbering. If anyone could help me figure out how to keep this from happening I would greatly appreciate it!

    If you don't mind cracking open the ePub and editing template.css, then adding rules like:
    h2 {
              page-break-before: always;
    should force each paragraph whose style is mapped to an h2 tag on to a new page. Whether or not it works will depend on how good the ePub reader is at implementing CSS. It seems to work for Digital Editions and also Kindle, if you convert ePub to Kindle format.
    This doesn't help at all if you are trying to force sections into separate XHTML files, though.

  • How to control the size of SVG images in epub files?

    There is unfortunately no support for SVG files in InDesign.
    Most of my images in jpg convertes nicely, but the small ones do not.
    Therefore I want to use SVG files which I have created in Illustrator.
    But how do I set the size in the epub file? Right now, whatever I do, they come out too big and I don't know how to control the size.
    Is there a program, like Sigil or other, that can place the image for me - I'm no html wizard you see....

    In any Java program, it is good practice to make sure your live objects leave some room in the heap for "scratch space." Without this, you will spend too much time in GC, and, in the worst cases, run out of memory. In the general case, you can see how much live data your application requires by looking at the heap used after a full GC's. For Coherence, you should ensure that live data, as you say, is under 70% of the maximum heap size.
    Coherence provides you tools to help enforce this policy. [http://coherence.oracle.com/display/COH35UG/local-scheme] describes how to size limit your cache. By implementing an eviction policy, you can control what happens when a size limit is exceeded.

  • Editing XML in ePub files (also posted in ID forum)

    Hi all
    I posted this in the InDesign forum a few days ago but got no response, so I'm trying here. My apologies for the double-up.
    I'm about to start preparing ePUB files (from InDesign CS4) for a particular distributor whose instructions state:
    "Text encoding should all be in UTF-8 (this can be checked in the OPF, the first line should be “<?xml version="1.0" encoding="UTF-8" ?>” ".
    When I check my initial test files using PDFXML Inspector (with pretty printing turned off — thanks Gabriel Powell) the first line states only “<?xml version="1.0"?>”.
    I ran a test by simply adding the "encoding="UTF-8""  bit to that line and everything seems to work fine in Calibre and Digital Editions (as it did with the unedited version — there seems to be no difference).
    BUT, is this the correct way to do things or am I inadvertently setting myself up for disaster?
    Does InDesign automatically export with text encoded as UTF-8 — or some other format?
    Are there other settings in InDesign which alter the way text is encoded and the XML is generated?
    AND — my other question...
    This distributor is also asking for additional metadata entries.
    Can I integrate them anywhere within the metadata or are there particular ordering protocols that need to be adhered to?
    As you can see, I'm an XML ignoranti and any assistance will be most gratefully received.
    d.

    Hi Frances,
    Please be aware that I have not got any ePubs to the retail stage as yet, I was working flatout on a bunch of ePubs for a few months when the project got put on the backburner — so my experience is limited.
    I'm not sure what your process is, but InDesign CS4 does an OK job of creating ePubs — just so long as you set the files up correctly (eg. the easiest way to get page breaks between chapters is to save each chapter as a separate InDesign file and then combine them in a book. ALSO, everything should be styled using paragraph, character and oject styles)
    Unless CS5 has SIGNIFICANT upgraded support for ePub, you might be wasting your money.
    Check out the excellent tutorials by Gabriel Powell
    He gives the most outstanding introduction to ePUB from InDesign I've yet seen.
    PDF
    http://www.creativepro.com/article/making-ebooks-indesign-part-1
    Video
    http://instantindesign.com/index.php?view=413
    A couple of things I found I needed to do to get ePubs looking right in anything other than ADE:
    • I got a better result if I wrote my own CSS — InDesign does not do a good job of this at all, AFAIC. Export style names only and use these as the basis for your CSS.
    • Indesign fails to list fonts in the manifest, so if you want to specify your own fonts you need to add them manually and reference them in the manifest. Don't bother trying to embed fonts at export — it causes too many problems, it seems.
    • The only thing I need to do in the xhtml files is fix a few non-alpha characters sometimes (like bullets, apostrophes, quotes, etc) I've no idea why these sometimes fail and sometimes don't.
    FYI:
    I use both Calibre and ADE to view ePubs — because they will each highlight different issues.
    I built my CSS and a few other bits and pieces in Text Edit — this makes it easy to re-use things like the CSS for multiple publications.
    I use PDFXML Inspector to do the editing — this allows siginificant editing capability without the need to unpack the ePub.
    And I use Terminal to repackage ePubs (ie. after adding a fonts folder, or whatever) — using the command lines in Gabriel Powell's tutorial.
    ie. I've spent nothing on additional software — it's all either free or already on the Mac.
    It's a very steep, frustrating learning curve — LOTS of trial and LOTS of error. But it's also fun.
    Good luck
    d.

  • Glitches in ePub File Not Detectable in Pages Prior to Exporting

    27 April 2012
    Dear Apple Support Community:
    Greetings. I am using an updated version of Pages to create a file to be exported as an ePub. The exported file as an ePub is fine when viewed on my iPod Touch as an iBook. However, the ePub/iBook contains some blank pages that I did not insert. Whether in portrait or landscape mode, there are blank pages that should not exist. Again and again, I have deleted blank spaces at the top and bottom of pages in Pages, but the resulting ePub (displayed as an iBook on my iPod Touch) still has blank pages. When I view the pre-EPUB file in Pages, I cannot and do not detect any blank pages.
    Does anyone have any suggestions about how I can create an eventual ePub in Pages that will more closely reflect the pages and spacings in the actual, pre-EPUB file?
    Sincerely,
    Excelsus
    P.S. The few images are inline, etc., etc., and the table of contents is fine, accurate, and functional, except that it displays or lists  "section" in places that I did not mark up or stylize as "sections" in Pages.
    Message was edited by: excelsus

    Hi Anne
    I wouldn't use Sigil myself. Perhaps you should go back to basics. You seem to be formatting your ePub incorrectly somewhere. I suggest you create a short document of say 16 pages, set it up afresh, using similar chapter headings, subheadings and text paragraph styles as the original, inserting the images inline, trying out the various Anchored Objects Options as so on. Keep testing the output using the IDPF Validator and viewing the ePub on the iBooks reader (if you’re using a Mac). You’ll then discover the various ways of formatting the book to get the effect you want. It might also be an idea take an online course, such as: http://www.lynda.com/EPUB-tutorials/InDesign-CC-EPUB-Fundamentals/143324-2.html?srchtrk=in dex:1%0Alinktypeid:2%0Aq:epub%0Apage:1%0As:relevance%0Asa:true%0Aproducttypeid:2
    this course will also help you learn how to convert an ePub file to a mobi file for use on the Kindle.
    Derek

  • Is there a way to train preview.app to view .epub files?

    I can do a quickview (spacebar) on so many file types, but not a simple .epub file which is nothing but zipped html and css. Is there a way to educate Preview.app on new file formats?

    <https://www.google.com/search?q=quickview+plugins&ie=utf-8&oe=utf-8&aq=t&rls=or g.mozilla:en-US:official&client=firefox-a&channel=sb#channel=sb&q=epub+quickview +plugins&rls=org.mozilla:en-US:official>

  • EPub file that works elsewhere getting error in iTunes producer, error items-9000

    I'm trying to upload an epub file to iBookstore with iTunes Producer. It's an epub file that's uploaded elsewhere with no problems. I am getting this error message ERROR ITMS-9000: "Unable to analyse: chap07.html" at Book (MZItmspBookPackage). Would appreciate any help.. thanks

    Just did a little research. You must publish your book from iBooks Author if you have media files in it. That arror code means that there is a file type error. If you upload using iBooks Author then that code should go away.
    Here is a link to another post that may help you:
    https://discussions.apple.com/docs/DOC-3605

  • Fonts in EPUB files

    When I generate output as an eBook, the results do not use the correct fonts.  I assume I need to embed the fonts somehow, but I have not been able to find a way to do this. 
    The font names are listed in the .css file, so I don't think that's the problem.
    I'm using RoboHelp 10, and using EPUB3 as the eBook format.

    Also, I wanted to mention: although embedding the font allowed paragraphs defined with the font to work properly in ibooks, character formatting using the same font did not work. I had to also perform the following to make the character formatting work. I think this is in an issue in ibooks only. It worked nicely on an Android device. I wanted to add this information in case it is helpful for others:
    1. Create a file named: com.apple.ibooks.display-options.xml, which includes the following lines:
    <?xml version="1.0" encoding="UTF-8"?>
    <display_options>
    <platform name="*">
    <option name="specified-fonts">true</option>
    </platform>
    </display_options>
    2. After creating your epub file, change the .epub file extension to .zip and unzip the file.
    3. Copy the com.apple.ibooks.display-options.xml file into the META-INF folder of the epub file structure.
    4. Open the content.opf file and declare the com.apple.ibooks.display-options.xml file, like so:
    <item href="/META-INF/com.apple.ibooks.display-options.xml" id="caido" media-type="application/xhtml+xml"/>
    5. Use a utility, such as ePubPack (it's free) to compress the files into an epub. You should use a utility, because simply rezipping the epub files and changing the extension back to epub may not work (some files in the epub need to remain uncompressed).
    It would be nice if Robohelp did this automatically. Apparently InDesign does this automatically (that's what I read on a blog posting, but I can't confirm that since I don't use InDesign).
    Message was edited by: SueC2009

  • Macron & underdot entities coded in OEB file does not showup properly in epub file

    "A" macron entity coded as "&#257" and "N" underdot entity coded as "n&#803" and "d" underdot entities coded as "&#803d&#803" are not showing up properly in the epub files but they display properly in the OEB file (HTML display). Please advise. Does epub provide support to these entities?

    Hi Subhash,
    You have to create at your own, take any decimal list of entities and open its .epub file in ADE, you will see the question marks against entities, these are the entities which are not supported by .epub.
    Need any further help, reply me.
    Regards,
    Arvinder

  • Downloading epub files from library into digital editions 2

    I am unable to download from my library to digital editions 2.  They told me to make sure the acsm and epub files are pointing to Digital Editions, which they are, they also had me uninstall and reinstall the adobe digital editions which I've done.  I have even tried using different browsers all of which the same problem exists.  Please help this is so frustrating I am using a toshiba 32-bit operating system with Windows Vista and firefox browser.  I have also disabled my firewalls and still nothing is working.  Please help me someone.....  I have searched for help and it appears there is a problem with the newest version of Digital editions, but I cannot find anywhere where I can try installing a lower version of this application.
    thanks in advance

    There are lots of bugs in ADE2.0.  Try replacing ADE2.0 with the older but more reliable v1.7.2.
    (You can have them both installed at once if you like.)
    Version 1.7.2, it is a little difficult to find, available on Adobe site for Windows and for Mac.
    http://helpx.adobe.com/digital-editions/kb/cant-install-digital-editions.html
    The forum software is sometimes corrupting the link above.  There shouldn't be a blank in 'editio ns.html'.  The following redirects to the same page: http://tinyurl.com/diged172

  • Email epub files to iBooks

    I don't have an iPad yet, and am considering getting one. I was reading a few blogs online last night and saw one (and can't now find it) that mentions that it's possible to email non-DRM ePub files to yourself and then open those files in iBooks (circumventing iTunes). Can anyone with an iPad try this out for me? I suspect it's bunk, but it's worth knowing for sure before I shell out cash. I'd much prefer to have some way of reading books on the iPad without having to go through iTunes.

    I was reading a few blogs online last night and saw one (and can't now find it) that mentions that it's possible to email non-DRM ePub files to yourself and then open those files in iBooks (circumventing iTunes).
    Yes, they transfer to the iPad but on my iPad they do not auto-transfer to iBooks for reading nor do they open in QuickLook. They can, however, be copied to my GoodReader app, but will not open there either as it is not "billed" as an ePUB reader. On the other hand, other eBook alternative formats such as HTML (htm) and PLAIN TEXT (txt) public domain files can be opened in QuickLook or transferred GoodReader and read by that application. Whether or not the GoodReader transfer option is overriding a similar option for iBooks transfers has not been tested.

  • Reading .mobi or .epub files in MAC

    Hi, is there any free ebook reader software supporting .mobi or .epub file formats?

    There is an experimental Mac OS port of FBReader (http://fbreader.org/) available at http://gobunov.ru/projects.html.
    I haven't used it, so cannot vouch for it, but it may be worth a try.
    Thomas Ferraro
    http://macsst.com

Maybe you are looking for

  • Xsan panic and recurring errors

    I had the volume go down in a panic last week. We were able to restart and get everything running but now have a persistent error which appears to be related. Both reference gethostbyname. I have dns setup for all of the systems on both the regular n

  • Sometimes web pages seem too big to fit in my screen...

    ...I can't see the far right side of many web pages I visit,(including the previous "Ask a Question" screen),...None of the Display/screen resolution options enable me to fit the whole page inside my screen,However,When I click the screen maximize bu

  • How can i make a pl/sql function for BLOB datatype

    hi..anyone here who is very familiar about BLOB datatype. i have a COLUMN_ID, COLUMN_A in a certain TABLE_1. COLUMN_A is blob datatype that contains almost 250,000rows SQL>select column_A from table_1 where column_id=1234567 column_A 0000000100000001

  • Problems with Re-installation of CS5.5 Design Premium

    I bought a "Student & Teacher Edition" of the CS5.5 Design Premium in 2012. It was installed in my iMac and the software worked perfectly. Unfortunately, a few weeks ago, my iMac hard disk crashed and need to be replaced. When I got the iMac back rec

  • I am not able to download adobe reader

    I receive an error message saying that there is another download in progress, but I am not able to find another download, and I have not idea how to stop the other download if there is one.  I have tried restarting my computer, using another browser,