View Single Post
Old 08-03-2011, 10:17 PM   #1
stevej46
Member
stevej46 began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Aug 2011
Location: Centennial, Colorado
Device: iPad
Bad Value Attribute "PreserveAspectRatio"

It seems I have one last error to fix before I can upload my book.


ERROR: /Users/Steve/Calibre Library/Stephen H. Johnson/I In Florida (45)/I In Florida - Stephen H. Johnson.epub/OEBPS/Text/titlepage.xhtml(22): bad value for attribute "preserveAspectRatio"

Here is the title page 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" xml:lang="en" xmlns:xml="http://www.w3.org/XML/1998/namespace">
<head>
<meta content="true" name="calibre:cover" />

<title>Cover</title>
<style title="override_css" type="text/css">

/*<![CDATA[*/

@page {padding: 0pt; margin:0pt}
body { text-align: center; padding:0pt; margin: 0pt; }
/*]]>*/
</style>
</head>

<body style="">
<div>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" preserveAspectRatio="none" version="1.1" viewBox="0 0 500 751" width="100%">
<image height="751" width="500" xlink:href="../Images/cover.jpeg"></image>
</svg>
</div>
</body>
</html>

I've tried putting my own title page in the InDesign format.. I've also tried adding the cover photo from Calibre in the metadata area. Always get the some error.

What am I doing wrong?

Stevej46
stevej46 is offline   Reply With Quote