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

Re: Logical Groups

From: Gavin Kistner <gavin@refinery.com>
Date: Fri, 14 Nov 2003 13:31:50 -0700
Message-Id: <933B081B-16E1-11D8-97E8-0003937E984E@refinery.com>
To: www-svg@w3.org

On Tue, 29 Jul 2003 Doug Schepers wrote:
> After some dialog, we thought up a possible mechanism that would 
> satisfy both these use cases: the declaration of a logical grouping of 
> elements, similar to <use>, that would "logically render" in the same 
> painter's model fashion, without changing the graphical rendering. In 
> the case of text, this might look like:
> <logicalGroup id='myParagraph'>
>    <member xlink:href='#foo'/>
>    <member xlink:href='#bar'/>
>    <member xlink:href='#buh'/>
> </logicalGroup>
> <text id='buh' x='0' y='13'>One</text>
> <text id='foo' x='0' y='15'>Two</text>
> <text id='bar' x='0' y='18'>Three</text>
> (<member> could also simply be <use>, since the logicalGroup would not 
> visibly render.)

To ensure I understand this proposal properly: this only provides an 
internal (DOM) grouping of elements, correct? Or does it affect the 
rendering order/layering also? (I understand that one of its features 
is the ability to apply styles to multiple elements, such as hiding 

I assume that in the above you purposefully placed the member/use order 
as "foo, bar, buh", differing from the source code order of "buh, foo, 
bar". Does this change the way the three are displayed at all, or does 
it simply provide a means of imposing a semantic order on the content, 
in a code-accessible way?

How would you resolve the sort of dual-tree inheritance conflicts which 
might arise, e.g.:

<logicalGroup style="fill:red">
	<member xlink:href='#foo'/>
	<member xlink:href='#bar'/>

<g style="fill:blue">
	<text id="bar" x="20" y="5">World</text>
<g style="fill:green">
	<text id="foo" x="0" y="10">Hello</text>

If logicalGroups only provide an XML way of grouping elements for 
stylistic changes, how do they differ from CSS classes?

[Hrm, I suppose it's annoying with code to select all elements with a 
certain class, without xpath.]

Gavin Kistner @ Refinery, Inc.
work: +1.303.444.1777
Received on Friday, 14 November 2003 15:32:00 UTC

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