List Info

Thread: assign a class to a list




assign a class to a list
user name
2007-10-17 14:03:34
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&g
t;
 
<listitem><para>Four</para></listitem&g
t;
 
<listitem><para>Three</para></listitem&
gt;
  ...
</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.o
rg/resume/
http://utuxia.com/consul
ting

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-helplists.oasis-open.org


RE: assign a class to a list
user name
2007-10-17 14:14:35
You could put the orderedlist in a para and use
para.propagates.style
<http://docbook.sourceforge.net/release/xs
l/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: ettingergmail.com [mailto:ettingergmail.com] On 
> Behalf Of Anthony Ettinger
> Sent: Wednesday, October 17, 2007 2:04 PM
> To: docbooklists.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&g
t;
>  
<listitem><para>Four</para></listitem&g
t;
>  
<listitem><para>Three</para></listitem&
gt;
>   ...
> </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.o
rg/resume/
> http://utuxia.com/consul
ting
> 
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: docbook-unsubscribelists.oasis-open.org
> For additional commands, e-mail: docbook-helplists.oasis-open.org
> 
> 

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-helplists.oasis-open.org


Re: assign a class to a list
user name
2007-10-17 18:39:42
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 <dcramermotive.com> wrote:
> You could put the orderedlist in a para and use
para.propagates.style
> <http://docbook.sourceforge.net/release/xs
l/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: ettingergmail.com
[mailto:ettingergmail.com] On
> > Behalf Of Anthony Ettinger
> > Sent: Wednesday, October 17, 2007 2:04 PM
> > To: docbooklists.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&g
t;
> >  
<listitem><para>Four</para></listitem&g
t;
> >  
<listitem><para>Three</para></listitem&
gt;
> >   ...
> > </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.o
rg/resume/
> > http://utuxia.com/consul
ting
> >
> >
------------------------------------------------------------
---------
> > To unsubscribe, e-mail: docbook-unsubscribelists.oasis-open.org
> > For additional commands, e-mail: docbook-helplists.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.o
rg/resume/
http://utuxia.com/consul
ting

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-helplists.oasis-open.org


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )