This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[docbook-apps] XML CSS Ordered lists and Mozilla


Hi

I'm displaying my XML using CSS in Mozilla (IE is useless for this work) with some success but am having trouble getting <orderedlist>s to display

with:
<?xml version = "1.0" encoding = "UTF-8"?>
<?xml-stylesheet type="text/css" href="css/docbook.css"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "docbookx.dtd" []>
<book>
   <preface>
      <title>Preface</title>
      <itemizedlist mark = "opencircle">
         <listitem><para>b1</para></listitem>
         <listitem><para>b2</para></listitem>
         <listitem><para>b3</para></listitem>
      </itemizedlist>
      <orderedlist numeration = "arabic">
         <listitem><para>arabic1</para></listitem>
         <listitem><para>arabic2</para></listitem>
         <listitem><para>arabic3</para></listitem>
      </orderedlist>
   </preface>
</book>

where docbook.css contains:

itemizedlist {display: block;}
itemizedlist[mark="opencircle"] listitem{
  margin-left: 25pt;
  display: list-item;
  list-style-type: circle;}
orderedlist{display: block;}
orderedlist[numeration="arabic"] listitem {
  margin-left: 25pt;
  display: list-item;
  list-style-type: decimal;
}

My itemized lists work fine (so I guess my code syntax is correct) however my ordered list items all come out as 0., 0., 0. rather than 1., 2., 3., 

Anyone got any suggestions?

Cheers
P.

To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]