OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Re: DOCBOOK-APPS: Ordered List Item Numbers


On Sat, Dec 08, 2001 at 12:18:13PM -0500, Joseph Polanik wrote:
> I have a docBook document with many ordered lists. A few are nested.
> 
> I'd like to have the second item of the inner list have an
> item number like 3.2 (where the inner list is within the
> 3rd list item of the outer list.

> I'm using the html/docbook.xsl stylesheet that came with
> the Norman Walsh package, the documentation for which point
> to the section that is supposed to "export" the item
> number, but I don't get any numbers for the inner list. The
> outer list is numbered, but it looks like an effect of the
> <li> tag.

The XSL stylesheets don't appear to support this kind of
numeration for orderedlists in HTML. The 
The stylesheets output <ol> and <li> and use the
standard HTML attributes to control number style.
HTML numbering style doesn't include nested numbers,
even with CSS.

I think you would have to replace the template for
orderedlist in a customization layer with one that outputs
<dl> lists instead of <ol>. Then a template with
match="orderedlist/listitem" could use <xsl:number> to
generate the number for the <dt> term.  <xsl:number> can do
nested numbering like you want.

-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
Caldera International, Inc.                 fax:   (831) 429-1887
                                            email: bobs@caldera.com


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC