Thanks for the compliments and for pointing out the errors. I've been
keeping a little file containing exactly these sorts of things for the next
time we actually update the SVG Primer.
Cheers
David
From: Paul Ostrowski [mailto:postrowski@apriva.com]
Sent: Wednesday, January 30, 2013 5:03 PM
To: public-svg-ig@w3.org; www-svg@w3.org
Subject: SVG primer document error
First, I have to say that I really love the SVG primer document you wrote!
It's pure gold!
However, while going through it, I ran into an issue: In your examples of
how to use the <use> tag, you aren't putting the hash character everywhere
its needed, and as a result, the first several examples of using the <use>
tag don't work. It took me a little while to figure out what was needed to
correct it.
i..e.:
<use xlink:href="G" transform="translate(120,0)" fill="#bbb">
Should be:
<use xlink:href="#G" transform="translate(120,0)" fill="#bbb">
Same changes here:
<g stroke="black" stroke-width="2" fill="none" >
<ellipse id="g1" cx="100" cy="100" rx="75" ry="40" />
<use xlink:href="#g1" transform="rotate(30 100 100)"/>
<use xlink:href="#g1" transform="rotate(60 100 100)"/>
</g>
Keep up the great work!
Paul Ostrowski