W3C home > Mailing lists > Public > www-svg@w3.org > February 2002

Re: An invalid example in SVG 1.0 Spec. - Chapter 17.1

From: Tobias Reif <tobiasreif@pinkjuice.com>
Date: Thu, 21 Feb 2002 22:02:19 +0100
Message-ID: <3C75605B.3090208@pinkjuice.com>
To: www-svg@w3.org
CC: Satoshi ISHIKAWA <pastelsbadges@nyc.odn.ne.jp>
Satoshi ISHIKAWA wrote:

> In SVG 1.0 '17 Linking', 'Example link01' [1] is described
> as follows:
> 
> |  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
> |  "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
> |  <svg width="5cm" height="3cm" viewBox="0 0 5 3"
> |     xmlns="http://www.w3.org/2000/svg"
> |     xmlns:xlink="http://www.w3.org/1999/xlink">
> 
> This SVG document is well-formed, but not valid.[2]
> Because there is no attribute 'xmlns:link' for 'svg' element.
> Please correct it :)


But ist is valid. Complete valid document:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
   "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg width="5cm" height="3cm" viewBox="0 0 5 3" 
xmlns="http://www.w3.org/2000/svg" 
xmlns:xlink="http://www.w3.org/1999/xlink"/>

You can use something like XML Spy for validating against DTDs and W3C 
XML Schemas.

general basic template:

http://www.pinkjuice.com/txt/basictemplate.svg

Tobi


-- 

* peace&love.
* http://www.pinkjuice.com/
Received on Thursday, 21 February 2002 16:03:49 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:21 GMT