[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] assign a class to a list
Great idea, but doesn't work that way: <para><orderedlist>....</orderedlist></para> yields: <p></p> <ol> ... </ol> <p class="priorities"> foo </p> <div class="orderedlist"> <ol type="1"> <li> <p>Level 1 - High</p> <div class="itemizedlist"> <ul type="disc"> <li> <p>Foo</p> </li> <li> <p>Boo</p> </li> </ul> </div> </li> </ol> </div> <p class="priorities"> bar </p> -------- xml below ---------- <para role="priorities"> foo <orderedlist> <listitem><para>Level 1 - High</para> <itemizedlist> <listitem><para>Foo</para></listitem> <listitem><para>Boo</para></listitem> </itemizedlist> </listitem> </orderedlist> bar </para> On 10/17/07, David Cramer <dcramer@motive.com> wrote: > You could put the orderedlist in a para and use para.propagates.style > <http://docbook.sourceforge.net/release/xsl/current/doc/html/para.propag > ates.style.html>. Then you could write your css to look for <p > class="priorities"><ol>. > > David > > > -----Original Message----- > > From: ettinger@gmail.com [mailto:ettinger@gmail.com] On > > Behalf Of Anthony Ettinger > > Sent: Wednesday, October 17, 2007 2:04 PM > > To: docbook@lists.oasis-open.org > > Subject: [docbook] assign a class to a list > > > > I have an orderedlist that I want to assign a class > > to...because I want to reverse the numbering with CSS (unless > > there is a way to reverse numbering with markup). > > > > <orderedlist> > > <listitem><para>Five</para></listitem> > > <listitem><para>Four</para></listitem> > > <listitem><para>Three</para></listitem> > > ... > > </orderedlist> > > > > > > <ol class="priorities"> > > <li><p>Five</p></li> > > <li><p>Four</p></li> > > <li><p>Three</p></li> > > ... > > </ol> > > > > so the output would be viewed as: > > > > 5. Five > > 4. Four > > 3. Three > > 2. Two > > 1. One > > > > > > -- > > Anthony Ettinger > > Ph: 408-656-2473 > > var (bonita, farley) = new Dog; > > farley.barks("very loud"); > > bonita.barks("at strangers"); > > > > http://chovy.dyndns.org/resume/ > > http://utuxia.com/consulting > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org > > For additional commands, e-mail: docbook-help@lists.oasis-open.org > > > > > -- Anthony Ettinger Ph: 408-656-2473 var (bonita, farley) = new Dog; farley.barks("very loud"); bonita.barks("at strangers"); http://chovy.dyndns.org/resume/ http://utuxia.com/consulting
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]