[MPlayer-DOCS] Can I make an ordered list start at 0?
Corey Hickey
bugfood-ml at fatooh.org
Sat Sep 3 00:18:30 CEST 2005
Ivo wrote:
> 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.
>
> A quick grep on all xml documents reveals though that the encoding guide has
> one instance of continuation="continues" where it actually means it wants
> to continue a previous orderedlist. Maybe that can be changed and the above
> hack can be added to html-common.xsl.
I'd rather not change the documented behavior of an attribute - that
would unduly confuse somebody like me who doesn't know what he or she is
doing. Now that I've used <programlisting> I've decided that I rather
like the lack of line spacing, so it's not worth going through any
trouble to make me able to use an <orderedlist>.
For what it's worth, using <orderedlist spacing="compact"> results in
<ol type="1" compact>, which doesn't seem to render any differently in
Firefox.
-Corey
More information about the MPlayer-DOCS
mailing list