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]

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


------------------------------------------------------------------
To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to: docbook-apps-request@lists.oasis-open.org


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