W3C home > Mailing lists > Public > www-style@w3.org > October 2003

Re: [CSS3] Generated and Replaced Content - Grouping (long, examples)

From: Robert Koberg <rob@koberg.com>
Date: Thu, 30 Oct 2003 08:07:47 -0800
Message-Id: <33D90F9E-0AF3-11D8-B25C-00039354A8EC@koberg.com>
Cc: www-style@w3.org
To: Stanimir Stamenkov <stanio@myrealbox.com>

Hi,

On Oct 30, 2003, at 6:41 AM, Stanimir Stamenkov wrote:

>
> I've posted this in c.i.w.a.s. group but I've decided to post it here, 
> too, to find out what the people from the WG think about it.
>
> Looking through the draft I still can't figure out how one could (is 
> it possible to) group several elements and style a generated 
> containing block for the group.

Keep your content in XML in the structure you desire and use XSL to 
transform it to your desired output.

<article>
   <title/>
   <section>
     <title/>
   </section>
</article>

to

<div class="article">
   <h1/>
   <div class="section">
     <h2/>
   </div>
</div>

-Rob
Received on Thursday, 30 October 2003 11:07:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:24 GMT