This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Phantom bold tags: xsltproc and docbook.xsml (HTML)


> 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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]