[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] orderedlists continuing over tablerows
[I'm replying on the docbook-apps mailing list because this is not a DTD issue] When the stylesheet processes a continuation="continues" attribute on an orderedlist, it does not keep track of any nesting of list levels. It just takes the immediately preceding orderedlist as its reference point. In your case, the immediately preceding ordered list is your nested list (a,b), so the first number of the new list is 3. If you wanted to customize its behavior, you would need to look at the list numbering templates in common/common.xsl, such as 'orderedlist-starting-number'. You would have to alter the way the preceding list is selected to meet your criteria. Your list is well suited to the natural structure of a single nested orderedlist, it seems. If it is a formatting problem, perhaps a table with list restarts is not the right solution. Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "Ruiter, Epco de (RBI-NL)" <Epco.de.Ruiter@reedbusiness.nl> To: <docbook@lists.oasis-open.org> Sent: Tuesday, October 05, 2004 5:24 AM Subject: [docbook] orderedlists continuing over tablerows > Hello, > > I have a table (or actually some tables...) with an orderedlist in the first > column, and references to articles about the subject in the columns > following. Something like this: > > label article page > 1. First item 1 1 > a. First subitem 2 5 > b. Second subitem 4 12 > 2. Second item 7 21 > 3. Third item 9 27 > a. First subitem 10 35 > b. Second subitem 13 50 > 4. Fourth item 14 56 > 5. Fifth item 16 68 > > The table will be in a Web publication (The content is for a site which > contains Dutch lawtexts, therefore shouldn't contain any errors). To keep > every reference on the same line with the corresponding item (with different > browser-widths) i've put every item and corresponding reference in rows. > Using inheritence and continuation I've tried to keep the orderedlist > intact, but I can't seem to get it proper. > > Here the XML (stripped to tbody): > <tbody> > <row><entry><para>artikel</para></entry><entry>2.24</entry><entry/></row> > <row><entry><para>lid</para></entry><entry>1</entry><entry>2</entry></row> > <row><entry><orderedlist><listitem><para>1 > Woonfunctie</para></listitem></orderedlist></entry><entry/><entry/></row> > <row><entry><orderedlist inheritnum="inherit"><listitem><para><orderedlist > numeration="loweralpha"><listitem><para>1a woonfunctie van een > woonwagen</para></listitem></orderedlist></para></listitem></orderedlist></e > ntry><entry>-</entry><entry>-</entry></row> > <row><entry><orderedlist inheritnum="inherit"><listitem><para><orderedlist > numeration="loweralpha" continuation="continues"><listitem><para>1b andere > woonfunctie</para></listitem></orderedlist></para></listitem></orderedlist>< > /entry><entry>1</entry><entry>-</entry></row> > <row><entry><orderedlist inheritnum="inherit" > continuation="continues"><listitem><para>2 > Bijeenkomstfunctie</para></listitem></orderedlist></entry><entry>1</entry><e > ntry>-</entry></row> > <row><entry><orderedlist continuation="continues"><listitem><para>3 > Celfunctie</para></listitem></orderedlist></entry><entry>1</entry><entry>-</ > entry></row> > <row><entry><orderedlist continuation="continues"><listitem><para>4 > Gezondheidszorgfunctie</para></listitem></orderedlist></entry><entry>1</entr > y><entry>-</entry></row> > <row><entry><orderedlist continuation="continues"><listitem><para>5 > Industriefunctie</para></listitem></orderedlist></entry><entry/><entry/></ro > w> > <row><entry><orderedlist inheritnum="ignore" > continuation="continues"><listitem><para><orderedlist > numeration="loweralpha"><listitem><para>5a lichte > industriefunctie</para></listitem></orderedlist></para></listitem></orderedl > ist></entry><entry>-</entry><entry>-</entry></row> > <row><entry><orderedlist inheritnum="inherit"><listitem><para><orderedlist > numeration="loweralpha" continuation="continues"><listitem><para>5b andere > industriefunctie</para></listitem></orderedlist></para></listitem></orderedl > ist></entry><entry>1</entry><entry>-</entry></row> > <row><entry><orderedlist continuation="continues"><listitem><para>6 > Kantoorfunctie</para></listitem></orderedlist></entry><entry>1</entry><entry > >-</entry></row> > <row><entry><orderedlist continuation="continues"><listitem><para>7 > Logiesfunctie</para></listitem></orderedlist></entry><entry>1</entry><entry> > -</entry></row> > <row><entry><orderedlist continuation="continues"><listitem><para>8 > Onderwijsfunctie</para></listitem></orderedlist></entry><entry>1</entry><ent > ry>-</entry></row> > <row><entry><orderedlist continuation="continues"><listitem><para>9 > Sportfunctie</para></listitem></orderedlist></entry><entry>1</entry><entry>- > </entry></row> > <row><entry><orderedlist continuation="continues"><listitem><para>10 > Winkelfunctie</para></listitem></orderedlist></entry><entry>1</entry><entry> > -</entry></row> > <row><entry><orderedlist continuation="continues"><listitem><para>11 Overige > gebruiksfunctie</para></listitem></orderedlist></entry><entry/><entry/></row > > > <row><entry><orderedlist inheritnum="inherit"><listitem><para><orderedlist > numeration="loweralpha"><listitem><para>11a overige gebruiksfunctie voor het > personenvervoer, met een gebruiksoppervlakte van meer dan 50 > m<superscript>2</superscript></para></listitem></orderedlist></para></listit > em></orderedlist></entry><entry>1</entry><entry>-</entry></row> > <row><entry><orderedlist inheritnum="inherit"><listitem><para><orderedlist > numeration="loweralpha" continuation="continues"><listitem><para>11b overige > gebruiksfunctie voor het stallen van > motorvoertuigen</para></listitem></orderedlist></para></listitem></orderedli > st></entry><entry>1</entry><entry>-</entry></row> > <row><entry><orderedlist inheritnum="inherit"><listitem><para><orderedlist > numeration="loweralpha" continuation="continues"><listitem><para>11c andere > overige > gebruiksfunctie</para></listitem></orderedlist></para></listitem></orderedli > st></entry><entry>-</entry><entry>2</entry></row> > <row><entry><orderedlist continuation="continues"><listitem><para>12 > Bouwwerk geen gebouw > zijnde</para></listitem></orderedlist></entry><entry>-</entry><entry>2</entr > y></row> > </tbody> > > I've included the enummeration which should appear in the text, as easy > reference. > > I hope someone can help me here, or just point out: > - If this is part of the mentioned bug of orderedlist itself. > - Some workaround. The original table is already made with the numbers as > plain text (and for spacing), but I would like to have this the > proper way. > > Thanx in advance, > > Epco de Ruiter > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]