This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Phantom bold tags: xsltproc and docbook.xsml (HTML)
- To: churcher at ihug dot com dot au, docbook-apps at lists dot oasis-open dot org
- Subject: Re: DOCBOOK-APPS: Phantom bold tags: xsltproc and docbook.xsml (HTML)
- From: Bob Stayton <bobs at caldera dot com>
- Date: Wed, 07 Nov 2001 10:10:08 -0800 (PST)
- List-Id: <docbook-apps.lists.oasis-open.org>
> From: Rich Churcher <churcher@ihug.com.au>
>
> Given the following DocBook XML:
>
> <qandaset defaultlabel="none">
> <qandadiv id="s1"><title>Essentials</title>
>
> <qandaentry><question id="q1.1"><para>1.1 What is the purpose of this
> newsgroup?</para></question>
>
> <answer><para><ulink
> url="news:alt.comp.lang.learn.c-c++">alt.comp.lang.learn.c-c++</ulink>
> is a self-moderated newsgroup for the discussion of issues that concern
> novice to intermediate C and C++ programmers. We ask and answer
> questions about those languages as defined by their respective standard
> documents.</para>
>
>
> The DocBook stylesheets generate this HTML output:
>
> <div class="qandaset">
>
> [ snip TOC ]
>
> <div class="qandadiv">
> <h3 class="title">
> <a name="s1"></a>1 Essentials</h3>
> <div class="qandaentry">
> <div class="question"><p>
> <a name="q1.1"></a><b>1.1 What is the purpose of this newsgroup?</b>
> </p></div>
> <div class="answer">
> <p>
> <b></b><a href="news:alt.comp.lang.learn.c-c++"
> target="_top">alt.comp.lang.learn.c-c++</a> is a self-moderated
> newsgroup for the discussion of issues that concern novice to
> intermediate C and C++ programmers. We ask and answer questions about
> those languages as defined by their respective standard documents.</p>
>
>
> Curiously, an empty <b></b> tag par is generated at the beginning of the
> first paragraph of each answer. It's relatively harmless, but what
> causes it?
Reading the html/qandaset.xsl stylesheet module,
the bold is for the label. If you had not set
<qandaset defaultlabel="none">, then your answer
would start with "<b>A:</b>", or whatever the
translation of that label would be in another
language. The "A:" comes from common/en.xml
as the generated text for the label of an
<answer> element.
bobs
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
----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>