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: DOCBOOK-APPS: xsl stylesheet problem?


Hi,
    I suspect a problem in the xsl stylesheet.
synopsis: incorrect definition list usage

The following xml source fragment and html output fragment result when
using the 1.29 xsl/html/chunk.xsl stylesheet with docbook xml 4.1.2.
There is a customisation driver in use, but the problem occurs
regardless.

The issue is that the glossary element generates a definition list, even
when  glossdiv's are present. (The glossdiv element generates an html
div, but using div in the definition list requires a wrapping <dd>).

IMO (And happy to be corrected :] ) the glossary element should only
generate a dl if no glossdivs are present || glossdiv should finished
the definition list, and start a new one at the /glossdiv.

Thoughts?

Rob


=== source xml ===
<glossary id="glossary">
<title>Glossary</title>

<!-- BEGIN F -->

<glossdiv>
<title>F</title>

<glossentry id="gloss-firewall">
<glossterm>firewall</glossterm>

<glossdef>
<para>
Firewall software attempts to protect an internal network from
intrusions originating from an external network.</para>
</glossdef>
</glossentry>

</glossdiv>

<!-- END F -->

=== output html (from the body on)===
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084"
alink="#0000FF">
<div class="navheader">
<table width="100%">
<tr><th colspan="3" align="center">Glossary</th></tr>
<tr>
<td width="20%" align="left">
<a href="biblio.html">Prev</a>| </td>
<th width="60%" align="center">| </th>
<td width="20%" align="right">| <a href="gfdl.html">Next</a>
</td>
</tr>
</table>
<hr>
</div>
<div class="glossary">
<h2>Glossary</h2>
<dl>
<div class="glossdiv">
<h3 class="title">F</h3>
<dt><a name="gloss-firewall">firewall</a></dt>
<dd><p>
Firewall software attempts to protect an internal network from
intrusions originating from an external network.</p></dd>
</div>
<div class="glossdiv">



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


Powered by eList eXpress LLC