[MPlayer-DOCS] Can I make an ordered list start at 0?

Ivo ivop at euronet.nl
Sat Sep 3 00:19:31 CEST 2005


On Friday 02 September 2005 23:46, Ivo wrote:
> On Friday 02 September 2005 22:06, Corey Hickey wrote:
> > An <orderedlist> would be nice, but I don't see a way to make it start
> > with 0 instead of 1. The docbook doc is here:
> > http://www.docbook.org/tdg/en/html/orderedlist.html
> > ...but I don't see anything that would fit. Does anyone know?
>
> Sadly, orderedlist doesn't take start="0" as an argument. IMO the only
> way it can be done right now, is overriding orderedlist-starting-number.
> You can put it in html-common.xsl.
>
> <xsl:template name="orderedlist-starting-number"> 0 </xsl:template>
>
> All orderedlists will start with 1 as usual, but if you use
>
> <orderedlist continuation="continues">
>
> the above template will be called and the list will start at 0.

OK, this is better:

<orderedlist>
	<listitem override="0"> <para> blabla </para> </listitem>
	<listitem> <para> .... </para> </listitem>
</orderedlist>

override is needed only once. It starts counting from there.

--Ivo




More information about the MPlayer-DOCS mailing list