W3C home > Mailing lists > Public > www-svg@w3.org > October 2001

Re: Groups with non-zero intersections

From: Chris Lilley <chris@w3.org>
Date: Sun, 28 Oct 2001 20:41:09 +0100
Message-ID: <3BDC5F55.784EE33F@w3.org>
To: Kevin Lindsey <kevin@kevlindev.com>
CC: Jason Foster <jafoster@uwaterloo.ca>, www-svg@w3.org

Kevin Lindsey wrote:
> Hi Jason,
> > The problem is how to highlight routes on a road network, given that
> > multiple routes may have zero or more roads in common.
> SVG does not allow an element to belong to disjoint groups.  

Its important to distinguish between the strictly hierarchical structure
as expressed in the xml source (and the SVG g element) on the one hand,
and the notion of set membership on the other hand. Set membership is
expressed by the class attribute, whose value is a space separated list
of set memberships.

> You will have
> to solve this one by manipulating your document's DOM.

Agreed; in this case, the CSS object model to alter the styling. Adding
a rule to the runtime stylesheet that makes all elements in a particular
set have a defined style is the easiest way to achieve this.

Received on Sunday, 28 October 2001 14:41:16 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:51 UTC