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


I really would like to see XPath in attributes.

<rect x="id('someElem')/@width + 10" ...>

I implemented some workaround in JS wich works

<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.


It works in ASV6 and Batik, it should work in all
viewers which support DOMAttrModified events.


Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
Received on Monday, 8 March 2004 11:37:17 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:00 UTC