Quote:
Originally Posted by jhowell
This doesn't make sense. Are you trying to display cover.xhtml as an image from another xhtml file? You can't do that.
Perhaps you could post the code you are using for this.
|
Here's the original code generated by the program for that file:
Code:
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta name="calibre:cover" content="true"/>
<title>Cover</title>
<style type="text/css" title="override_css">
@page {padding: 0pt; margin:0pt}
body { text-align: center; padding:0pt; margin: 0pt; }
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
<div>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="100%" height="100%" viewBox="0 0 600 800" preserveAspectRatio="none">
<image width="600" height="800" xlink:href="OEBPS/cover.xhtml"/>
</svg>
</div>
</body>
</html>
After doing some searching on the web I discovered a different line of code I can use that works, so it is possible:
Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!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></title>
<style type="text/css">
/*<![CDATA[*/
body.sgc-1 {margin: 0px; text-align: center;}
/*]]>*/
</style>
</head>
<body class="sgc-1">
<div><img alt="" src=“Cover File.gif” /><img alt="Image" src="OEBPS/image/Cover%20File.gif" /></div>
</body>
</html>