[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Nested lists insensitive to "list.block.spacing" attribute set
It appears that the following horizontal list spacing recipe: <xsl:attribute-set name="list.block.spacing"> <xsl:attribute name="margin-left"> <xsl:choose> <xsl:when test="self::d:itemizedlist">0.2in</xsl:when> <xsl:when test="self::d:orderedlist">0.4in</xsl:when> <xsl:otherwise>0.6in</xsl:otherwise> </xsl:choose> </xsl:attribute> </xsl:attribute-set>doesn't affect nested lists. (Note that the default case "otherwise" isn't applied either.)
The attached sample files demonstrate that when I run the customization in my setup, which consists of xsltproc and fop 1.1
- Is that intended behaviour?- What can I do to indent all lists regardless their place in the docbook element hierarchy?
Thanks in advance for any help, Erik Leunissen.
<?xml version="1.0" encoding="UTF-8"?> <section version="5.0" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:svg="http://www.w3.org/2000/svg" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:db="http://docbook.org/ns/docbook"> <title>List handling</title> <para>Itemizedlist:</para> <itemizedlist> <listitem> <para>first item</para> <para>body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body</para> </listitem> <listitem> <para>second item</para> <para>body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body</para> </listitem> </itemizedlist> <para>Orderedlist:</para> <orderedlist> <listitem> <para>first item</para> <para>body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body</para> </listitem> <listitem> <para>second item</para> <para>body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body</para> </listitem> </orderedlist> <para>Variablelist:</para> <variablelist> <varlistentry> <term>term1</term> <listitem> <para>Orderedlist inside variablelist:</para> <orderedlist> <listitem> <para>first item</para> <para>body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body</para> </listitem> <listitem> <para>second item</para> <para>body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body</para> </listitem> </orderedlist> </listitem> </varlistentry> <varlistentry> <term>term2</term> <listitem> <para>body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body</para> </listitem> </varlistentry> </variablelist> <para>Nested itemizedlist:</para> <itemizedlist> <listitem> <para>first item</para> <itemizedlist> <listitem> <para>first item</para> <para>body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body</para> </listitem> <listitem> <para>second item</para> <para>body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body</para> </listitem> </itemizedlist> </listitem> <listitem> <para>second item</para> <para>body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body</para> </listitem> </itemizedlist> <para>Orderedlist inside itemizedlist:</para> <itemizedlist> <listitem> <para>first item</para> <orderedlist> <listitem> <para>first item</para> <para>body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body</para> </listitem> <listitem> <para>second item</para> <para>body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body</para> </listitem> </orderedlist> </listitem> <listitem> <para>second item</para> <para>body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body body-body-body-body-body-body</para> </listitem> </itemizedlist> </section>
Attachment:
list.xsl
Description: application/xslt
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]