OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Re: DOCBOOK-APPS: 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


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC