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

XPath in attributes

From: Jan-Klaas Kollhof <keyjaque@yahoo.com>
Date: Mon, 8 Mar 2004 08:36:44 -0800 (PST)
Message-ID: <20040308163644.67209.qmail@web60105.mail.yahoo.com>
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 GMT

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