Newbie question - Grouping of objects?

Hi,

I'm trying to use SVG for some autogenerating scripts and wonder if it
is possible to group objects and use them multiple times?

In short I want to create an object that can be for example:

<grop name"sample">
	<rect 
  		x="10"
  		y="20" 
  		width="100"
  		height="100"
  		style="fill:none; stroke:#AA0099; stroke-width:2;"/>
	<rect 
  		x="30"
  		y="50" 
  		width="50"
  		height="100"
  		style="fill:none; stroke:#AA0099; stroke-width:2;"/>
</group>

And then reuse the group with diffrent scalings for example:

<sample scale="90%">
	x="100"
	y="100"
</sample>
<sample scale="80%">
	x="35"
	y="35"
</sample>

And that would redraw two scaled images of the first difend ones. Anyone
one who could give me a sample of this or a hint to a webpage with info?

Cheers,

juman

</svg>

Received on Monday, 2 February 2004 09:48:08 UTC