This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Bug: XSL loses example title in answer
- From: Bob Stayton <bobs at caldera dot com>
- To: "Christopher R. Maden" <crism at maden dot org>, docbook-apps at lists dot oasis-open dot org
- Date: Tue, 27 Nov 2001 02:18:38 -0800
- Subject: Re: DOCBOOK-APPS: Bug: XSL loses example title in answer
- List-id: <docbook-apps.lists.oasis-open.org>
- References: <5.1.0.14.0.20011126122905.00a8b1a0@mail.maden.org>
On Mon, Nov 26, 2001 at 12:30:06PM -0800, Christopher R. Maden wrote:
>
> Apparently, I can't post a bug to Sourceforge without becoming a member there.
>
> DocBook XML 4.1.2, DocBook XSL 1.45.
>
> XML:
>
> <qandaset>
> <qandaentry>
> <question>
> <para>Blah blah blah.</para>
> </question>
> <answer>
> <example>
> <title><filename
> moreinfo="none">file.name</filename></title>
> <programlisting format="linespecific">// Hello, World</programlisting>
> </example>
> <example>
> <title><filename
> moreinfo="none">file2.name</filename></title>
> <programlisting format="linespecific>// Goodbye, World</programlisting>
> </example>
> </answer>
> </qandaentry>
> </qandaset>
>
> The first example will print the programlisting, but not the example's
> title. The second example will print the correctly-numbered title
> (including the preceding omitted one in the numbering) and its programlisting.
>
I went ahead and filed a bug report #485946 for this.
The first child of <answer> is being handled in a
manner that I think assumes it is a para, and it doesn't
work when it is something like an example. I attached
a patch file to the bug report and assigned it to
Norm, because only he knows the logic he used in
handling the first child that way. I hope he
remembers what it was. 8^)
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