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

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 UTC