Hi,
I tested it, and it works for me. There must be something else in your stylesheet that affects the list spacing.

Bob Stayton
Sagehill Enterprises
b...@sagehill.net


----- Original Message ----- From: "Lily Galle" <lily.ga...@gmx.net>
To: "Bob Stayton" <b...@sagehill.net>
Cc: <docbook-apps@lists.oasis-open.org>
Sent: Thursday, February 12, 2009 5:39 AM
Subject: [docbook-apps] Re:variablelist, delleting blank line


Hallo Bob,

Thank you very much for your advice. I tried the code. I do not why it does not work. The blank line before the "variablelist" still exits.

I also tried the following code:

<xsl:attribute-set name="list.item.spacing">
   <xsl:attribute name="space-before.optimum">0em</xsl:attribute>
   <xsl:attribute name="space-before.minimum">0em</xsl:attribute>
   <xsl:attribute name="space-before.maximum">0em</xsl:attribute>
 </xsl:attribute-set>

It does not work either.

Thank your for any more advices. Do you need my Stylesheet?

Lily

-------- Original-Nachricht --------
Datum: Mon, 9 Feb 2009 10:32:53 -0800
Von: "Bob Stayton" <b...@sagehill.net>
An: "Lily Galle" <lily.ga...@gmx.net>, docbook-apps@lists.oasis-open.org
Betreff: Re: [docbook-apps] variablelist, delleting blank line

Hi,
The varlistentry template (in fo/lists.xsl) uses the attribute-set named
'list.item.spacing' to set that space.  If you set the three attribute
values to 0em, though, it will also affect orderedlist and itemizedlist
items.  If you don't want that side effect, then you can customize the
attribute values with an xsl:choose for each attribute as follows:

<xsl:attribute-set name="list.item.spacing">
  <xsl:attribute name="space-before.optimum">
    <xsl:choose>
      <xsl:when test="ancestor::variablelist">0em</xsl:when>
      <xsl:otherwise>1em</xsl:otherwise>
    </xsl:choose>
  </xsl:attribute>
  <xsl:attribute name="space-before.minimum">
    <xsl:choose>
      <xsl:when test="ancestor::variablelist">0em</xsl:when>
      <xsl:otherwise>1em</xsl:otherwise>
    </xsl:choose>
  </xsl:attribute>
  <xsl:attribute name="space-before.maximum">
    <xsl:choose>
      <xsl:when test="ancestor::variablelist">0em</xsl:when>
      <xsl:otherwise>1em</xsl:otherwise>
    </xsl:choose>
  </xsl:attribute>
</xsl:attribute-set>

You might need to be more careful than ancestor::variablelist, however,
because it will also affect such itemizedlists and orderedlists nested
inside a variablelist. Using parent::variablelist would be more specific.

Bob Stayton
Sagehill Enterprises
b...@sagehill.net


----- Original Message ----- From: "Lily Galle" <lily.ga...@gmx.net>
To: <docbook-apps@lists.oasis-open.org>
Sent: Monday, February 09, 2009 9:14 AM
Subject: [docbook-apps] variablelist, delleting blank line


>
> Hi,
>
> (I use XEP.)
>
> In the stylesheet I wrote:
>
>  <xsl:param name="variablelist.as.blocks">0</xsl:param>
>
>    <xsl:attribute-set name="normal.para.spacing">
>      <xsl:attribute name="space-before.optimum">0pt</xsl:attribute>
>      <xsl:attribute name="space-before.minimum">0pt</xsl:attribute>
>      <xsl:attribute name="space-before.maximum">0pt</xsl:attribute>
>    </xsl:attribute-set>
>
> So there is no space between different paragraphs.
>
> But if I use “variablelist”, there is a blank line produced. What
should I
> do to delete this blank line?
>
> For example in the following code there is no space between the first
> three paragraphs. However there is a blank line (which I do not want.)
> before paragraph 4, because the paragraph 4 uses “variablelist”.
>
> The code is written like this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <book version="5.0" xml:lang="de" xmlns="http://docbook.org/ns/docbook";
>    xmlns:xi="http://www.w3.org/2001/XInclude";>
>
>    <title>book title</title>
>
>    <chapter>
>        <title>chapter title</title>
>        <para>
>            Paragraph 1: Mangagement has different types.
>        </para>
>
>        <para>
>           Paragraph 2:  What are the effects?
>        </para>
>
>        <para>
>            Paragraph 3:  Let us see it in detail.
>        </para>
>
>        <variablelist>
>                <varlistentry>
>                    <term>Types</term>
>                    <listitem>
>                    <para>
>                Paragraph 4: There are some different types of
management.
>                    </para>
>                    </listitem>
>                </varlistentry>
>        </variablelist>
>        <variablelist>
>
>            <varlistentry>
>                <term>Effects</term>
>                <listitem>
>                    <para>
>                        Paragraph 5: Effects are shown here.
>                    </para>
>                </listitem>
>            </varlistentry>
>        </variablelist>
>    </chapter>
>   </book>
>
>
> (Part of) the output looks like this:
>
> Paragraph 1: Mangagement has different types.
> Paragraph 2: What are the effects?
> Paragraph 3: Let us see it in detail.
>
> Types Paragraph 4: There are some different types of management.
>
> Effects Paragraph 5: Effects are shown here.
>
>
> Thanks for any help!
> Lily
>
> -- > Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit
allen:
> http://www.gmx.net/de/go/multimessenger01
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
>
>
>

--
Jetzt 1 Monat kostenlos! GMX FreeDSL - Telefonanschluss + DSL
für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org





---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org

Reply via email to