W3C home > Mailing lists > Public > www-validator@w3.org > May 2008

Re: even empty Xhtml/SVG document won't validate

From: gerald tevreden <gesttel2@versatel.nl>
Date: Fri, 9 May 2008 14:53:28 +0200
Message-ID: <000301c8b1d3$addb37e0$1201a8c0@download>
To: <www-validator@w3.org>

Thanks david,

That did the trick. When I can't figure something out I strip out every
possible cause. Unfortunately that isn't allowed with this doctype :-).
I got my document now running, but I have another issue now: For it to
validate and to display anything, I need to prefix svg for every tag. It's
silly overhead. Is there a way I can rewrite my text?
Here is a snippet of the famous lion;
[code]
<?xml version="1.0" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG
1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:svg="http://www.w3.org/2000/svg">
<head>
<title>test</title>
<style type="text/css">
<![CDATA[

 ]]>
</style>
</head>
<body>

<div>
<svg:svg xmlns:z="http://www.w3.org/2000/svg"
width="242" height="384">
<svg:g style="fill: #f2cc99" >
   <svg:path d="M
69,18L82,8L99,3L118,5L135,12L149,21L156,13L165,9L177,13L183,28
 L180,50L164,91L155,107L154,114L151,121L141,127L139,136L155,206
 L157,251L126,342L133,357L128,376L83,376L75,368L67,350L61,350
 L53,369L4,369L2,361L5,354L12,342L16,321L4,257L4,244L7,218L9,179
 L26,127L43,93L32,77L30,70L24,67L16,49L17,35L18,23L30,12L40,7L53,7
 L62,12L69,18L69,18L69,18"/>
</svg:g>
</svg:svg>
</div>
<p>Because you're a lion</p>
</body>
</html>
[/code]
Received on Friday, 9 May 2008 12:53:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:29 GMT