View Single Post
Old 02-27-2011, 02:34 PM   #10
bookraft
Junior Member
bookraft began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Feb 2011
Device: none
Adding div tags doesn't help. Epubcheck simply gives the same warning as before:

Error: test.epub/OEBPS/Test_split_125 [any number between 1 and 150].xhtml<16>: element "div" from namespace "http://www.w3.org/1999/xhtml" not allowed in this context

Here's the code from the beginning of one of the 150 files:

Code:
<?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>Psalms ePub Georgia</title>
  <link href="../Styles/stylesheet1.css" rel="stylesheet" type="text/css" />
  
<style type="text/css">
@page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; }
                @font-face {
    font-family: "Georgia";
    font-style: normal;
    font-weight: normal;
    src: local(Georgia)
    }
</style>
</head>

<body class="calibre">
  <p class="awpsalmheader" id="calibre_toc_8"><span class="awpagebreak" id="calibre_pb_8">PSA</span><span>LM SIX</span></p>

  <div class="calibre1">
    <a class="calibre2" id="psalm-six-anchor"></a>
  </div>

  <p class="awnormal17ptafter"><span>A composition for chorus and strings, a psalm of David:</span></p>
As for the suggestion of using paragraph styles for the page breaks, it's not so practical. Although the document is well structured in InDesign, some page breaks must come before pargraph styles that are used elsewhere, and where a page break is not necessary.

hmm...
bookraft is offline   Reply With Quote