Thread: SVG question
View Single Post
Old 10-16-2012, 02:01 AM   #5
bobb40
Enthusiast
bobb40 has a complete set of Star Wars action figures.bobb40 has a complete set of Star Wars action figures.bobb40 has a complete set of Star Wars action figures.
 
Posts: 28
Karma: 274
Join Date: Jul 2011
Device: Kindle3, Kindle4, KoboGlo
Quote:
Originally Posted by JSWolf View Post
What errors is the W3C validation program reporting for that code?
Sorry slow with reply.
Anonymized code is:
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" xml:lang="en">
  <head>
    <title>xxxxxx xxxxxx</title>
    <link href="../Styles/wg_styles.css" rel="stylesheet" type="text/css" />
  </head>
  
  <body id="xx_cover">
  
    <div>
      <svg version="1.1" xmlns="http://www.w3.org/2000/svg"
          xmlns:xlink="http://www.w3.org/1999/xlink"
          width="99%" height="99%" viewBox="0 0 590 913"
          preserveAspectRatio="xMidYMid meet">
        <image width="590" height="913"
          xlink:href="../Images/xx_cover.jpeg" />
      </svg>
    </div>    <!-- end cover -->

    <!-- balance of file is omitted -->

  </body>
</html>
Edited validator result is:
Code:
Validation Output: 11 Errors

Error Line 14, Column 20: there is no attribute "version"
<svg version="1.1" xmlns="http://www.w3.org/2000/svg"

Error Line 14, Column 32: there is no attribute "xmlns"
<svg version="1.1" xmlns="http://www.w3.org/2000/svg"

Error Line 16, Column 17: there is no attribute "width"
width="99%" height="99%" viewBox="0 0 590 913"

Error Line 16, Column 30: there is no attribute "height"
width="99%" height="99%" viewBox="0 0 590 913"

Error Line 16, Column 44: there is no attribute "viewBox"
width="99%" height="99%" viewBox="0 0 590 913

Error Line 17, Column 31: there is no attribute "preserveAspectRatio"
preserveAspectRatio="xMidYMid meet">

Error Line 17, Column 46: element "svg" undefined
preserveAspectRatio="xMidYMid meet">

Error Line 18, Column 24: there is no attribute "width"
<image width="590" height="913" xlink:href="../Images/wg_cover.jpeg" …

Error Line 18, Column 37: there is no attribute "height"
<image width="590" height="913" xlink:href="../Images/wg_cover.jpeg" …

Error Line 18, Column 54: there is no attribute "xlink:href"
<image width="590" height="913" xlink:href="../Images/wg_cover.jpeg" />

Error Line 18, Column 81: element "image" undefined
<image width="590" height="913" xlink:href="../Images/wg_cover.jpeg" />
Full validator output (val_html_output.tgz) is attached (I hope).

Validator is installed on local machine, and runs as apache2 daemon; it shows "This service runs the W3C Markup Validator, v1.2." at bottom of page.

Epubcheck shows "No Errors, No Warnings" on epub which includes this code.

Regards,
Bob
bobb40 is offline   Reply With Quote