- From: Jan-Klaas Kollhof <keyjaque@yahoo.com>
- Date: Mon, 8 Mar 2004 08:36:44 -0800 (PST)
- To: www-svg@w3.org
Hi,
I really would like to see XPath in attributes.
<rect x="id('someElem')/@width + 10" ...>
I implemented some workaround in JS wich works
similar:
<rect x="10" constrNS:x="id('theOtherRect')/@width -
50" width="40" height="30" y="10" />
It is a quite simple impl. and only tries to show
the concept and how it could be managed with JS.
http://jan.kollhof.net/projects/svg/examples/constr.svg
It works in ASV6 and Batik, it should work in all
viewers which support DOMAttrModified events.
Jan
__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com
Received on Monday, 8 March 2004 11:37:17 UTC