--- In [email protected], "John C. Turnbull" <ozem...@...> wrote: > > Is it possible with SVG to define "variables" which can then be referred to > in multiple places in the XML? For example, I'd like to see something like: > > > > <var id="stdX" value="100.0"/> > > > > <rect id="r1" x="*stdX" y="200"... /> > > <rect id="r2" x="*stdX" y="300"... /> > > > > Where "*stdX" is dereferencing the pointer to the variable named "stdX". > > > > I realise the syntax is imaginary but do you see what I am trying to > achieve? Then if I modify stdX, I only need to do it in one place (I am > thinking of the scenario where the value is changed programmatically). > > > > Any thoughts on ways to achieve this? >
You could use symbols. One definition, multiple placements to do something along these lines. Best regards Robert. ------------------------------------ ----- To unsubscribe send a message to: [email protected] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ----Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: mailto:[email protected] mailto:[email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

