This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Bug: XSL loses example title in answer
- From: Norman Walsh <ndw at nwalsh dot com>
- To: Bob Stayton <bobs at caldera dot com>
- Cc: "Christopher R. Maden" <crism at maden dot org>, docbook-apps at lists dot oasis-open dot org
- Date: Tue, 27 Nov 2001 05:49:14 -0500
- Subject: DOCBOOK-APPS: Re: 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><20011127021838.A27542@caldera.com>
/ Bob Stayton <bobs@caldera.com> was heard to say:
| 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.
We used to allow anonymous bug reports, but it's too hard to track
down the originator that way :-)
| I went ahead and filed a bug report #485946 for this.
Thanks.
| Norm, because only he knows the logic he used in
| handling the first child that way. I hope he
| remembers what it was. 8^)
Sure, it's easy to explain even if it's a royal pain in the tokus.
Questions and answers are supposed to have labels. For example,
Q: How many angels can dance on the head of a pin?
But if the markup is:
<qandaset defaultlabel="qanda">
<qandaentry>
<question>
<para>How many angels can dance on the head of a pin?</para>
</question>
</qandaentry>
</qandaset>
The "obvious" implementation produces something like:
<div class="qandaentry">
<span class="label">Q:</span>
<p>How many angels can dance on the head of a pin?</p>
</div>
which renders as:
Q:
How many angels can dance on the head of a pin?
So the first child of question and answer need all this special gook in order
to attempt to get the label inside the first block. It sucks totally, but I
don't know of a better answer. I'm open to suggestions.
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | Part of thinking is its cruelty,
http://www.oasis-open.org/docbook/ | aside from its contents. It is the
Chair, DocBook Technical Committee | process of detachment for
| everything else, the ripping, the
| wrenching, the sharpness of
| cutting.--Elias Canetti