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

Re: Newbie question - Grouping of objects?

From: Carlo Andreoli <barbetto80@hotmail.com>
Date: Tue, 3 Feb 2004 09:48:14 +0100
To: <www-svg@w3.org>
Message-ID: <BAY9-DAV62Azz2Kg06L00052b60@hotmail.com>
ah ok...use this: 

........ 
<defs> 
  <symbol id="template1"> 
     <rect x="5" y="5" width="10" height="10"/> 
     <rect x="20" y="5" width="10" height="10"/> 
     <rect x="20" y="20" width="10" height="10"/> 
     <rect x="5" y="20" width="10" height="10"/> 
  </symbol> 
</defs> 
<use x="50" y="50" xlink:href="#template1" style="fill:none;stroke:black;stroke-width:2"/> 
<use x="150" y="50" xlink:href="#template1" style="fill:yellow;stroke:black;stroke-width:2"/> 
<use x="50" y="150" xlink:href="#template1" transform="translate(150,0) rotate(45)" style="fill:blue;stroke:black;stroke-width:2"/> 
<use x="80" y="60" xlink:href="#template1" transform="scale(2)" style="fill:red;stroke:black;stroke-width:2"/> 
</svg> 
....... 

it's a simple example...but you'll understand 
Received on Tuesday, 3 February 2004 03:46:05 GMT

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