View Single Post
Old 06-08-2012, 04:33 AM   #7
elibrarian
Imperfect Perfectionist
elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.
 
elibrarian's Avatar
 
Posts: 466
Karma: 724664
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: none
First impressions

Everything looks relatively normal, so I loaded one of my latest epubs:

- The bookview doesn't display my frontpage (probably because the image is embedded in SVG-tags - not valid xhtml, I admit, but afaik perfectly valid in an epub, and neither FlightCrew nor epub-checker protests against it.

Sample of my code:
<body style="margin:0; padding: 0; border-width: 0;">
<h1 class="frontpage" id="heading_id_2">Forside</h1>

<div class="svg_outer">
<div class="svg_inner">
<svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 600 800" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink">
<image height="800" width="600" xlink:href="../Images/pusjkin-spader_dame.jpg"/>
</svg>
</div>
</div>
</body>

- Not sure I like the new Preview-View - it crowds my screen, and generally strikes me as "shooting sparrows with a canon" - much too much for the relatively simple html-coding needed in an epub.


- Tried to generate an inline toc, the ran a FlightCrew validation, with result on toc.html:

"Element 'ol' is not allowed for content model '(li+)'

The code generated by the inline-toc-generator:

<?xml version="1.0"?>

<!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"><head><title>Table of Contents</title><style type="text/css"> p.sgc-toc-title { text-align:center; }
ol { list-style-type: none; }
li { margin-top: 0em; }
a { font-weight: normal; }
</style></head><body><p class="sgc-toc-title">Table of Contents</p><ol class="sgc-toc-ol-1"><li class="sgc-toc-li-1"><a class="sgc-toc-heading-1" href="../Text/Cover.html">Forside</a></li><li class="sgc-toc-li-1"><a class="sgc-toc-heading-1" href="../Text/Section0001.xhtml">Spader-Dame</a></li><ol class="sgc-toc-ol-2"><li class="sgc-toc-li-2"><a class="sgc-toc-heading-2" href="../Text/Section0001.xhtml#heading_id_3">I</a></li><li class="sgc-toc-li-2"><a class="sgc-toc-heading-2" href="../Text/Section0001.xhtml#heading_id_4">II</a></li><li class="sgc-toc-li-2"><a class="sgc-toc-heading-2" href="../Text/Section0001.xhtml#heading_id_5">III</a></li><li class="sgc-toc-li-2"><a class="sgc-toc-heading-2" href="../Text/Section0001.xhtml#heading_id_6">IV</a></li><li class="sgc-toc-li-2"><a class="sgc-toc-heading-2" href="../Text/Section0001.xhtml#heading_id_7">V</a></li><li class="sgc-toc-li-2"><a class="sgc-toc-heading-2" href="../Text/Section0001.xhtml#heading_id_8">VI</a></li></ol><li class="sgc-toc-li-1"><a class="sgc-toc-heading-1" href="../Text/Section0001.xhtml#heading_id_9">Om &quot;Spader Dame&quot;</a></li></ol></body></html>
Regards,

Kim
elibrarian is offline