View Single Post
Old 05-25-2014, 10:31 PM   #14
Zora
Enthusiast
Zora began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Oct 2008
Location: Honolulu
Device: iPod Touch, Nexus tablet
Unhappy I also am having problems with SVG code

I edit in Oxygen, an XML editor (lets me work inside the zipped epub folder). It flags this code as incorrect:

<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN'
'http://www.w3.org/TR/xhtml1/DTD/xhtml1.dtd'>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="../styles/style001.css" type="text/css" />
<title>Chords</title>
</head>

<body>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
width="100%" height="100%" viewBox="0 0 400 581" preserveAspectRatio="xMidYMid meet">
<image width="400" height="581" xlink:href="../images/chords_cover.jpeg" />
</svg>
</body>
</html>

Oxygen wants me to define image and svg. However, this code seems to work in all ereaders except the iPad. I am wondering if fixing the definition problem, so that the code passes muster with Oxygen, will also fix the iPad problem.

Please, Obi Wan Kenobi, you're my only hope.
Zora is offline   Reply With Quote