W3C home > Mailing lists > Public > www-svg@w3.org > November 2002

Re: [svg-developers] Re: some discussion of SVG 1.2

From: Jim Ley <jim@jibbering.com>
Date: Mon, 18 Nov 2002 16:44:38 -0000
To: www-svg@w3.org
Message-ID: <arb5f5$m26$1@main.gmane.org>


"Tobias Reif" <tobiasreif@pinkjuice.com> wrote in message
news:3DD9166A.9000601@pinkjuice.com...
>
> Kurt Cagle wrote:
>
>
> > I'd think strongly about implementing XPath 2.0 as a reference
mechanism
> > within SVG. For instance, the animation block:
> >
> > <set attributeName="fill" attributeType="CSS"  to="red"
fill="restore"
> > begin="(//rect[@ex:type='stepBox']).mouseover"
> > end="(//rect[@ex:type='stepBox']).mouseout"/>
> >
> > would cause the encasing element's fill to go red any time ANY
rectangle with
> > an external namespace attribute of ex:type holding the value
'stepBox' is
> > rolled on, and will release the fill whenever such a box is left.
>
> This would be very useful, save lots of code, and ease maintenace.

The syntax surely can't use the namespace prefix to make a judgement -
what would happen in the following situation:

<g xmlns:ex="urn:moo">
<rect x="0" y="0" height="10" width="10" ex:type="stepBox"/>
<rect x="20" y="20" height="10" width="10" ex:type="stepBox"/>
</g>

then if I insert another rect
<rect x="10" y="10" width="10" height="10" ex:type="stepBox"
xmlns:ex="urn:min"/>

that surely can't respond to the mouseover events too?

Jim.
Received on Monday, 18 November 2002 11:47:20 GMT

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