This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] qanda -> HTML missing <p> tag (was Problem using Q and A Sets)
- From: Karsten Wade <kwade at redhat dot com>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Sat, 25 Sep 2004 12:34:32 -0700
- Subject: [docbook-apps] qanda -> HTML missing <p> tag (was Problem using Q and A Sets)
- Organization: Red Hat, Inc.
I'm borrowing the was-subject from the 8 March 2004 thread that asked
about the same symptom. I haven't been able to find any follow-up to
the original message, other than a single request from Bob Stayton for
more information. Hopefully I can provide enough to diagnose what I
believe to be a bug in the XSL.
There is a visible line break in the HTML output of a <qandaset> across
the <td> that holds the "Q:." and the "A:.". An example is here, scroll
down below the ToC to see:
http://fedora.redhat.com/docs/selinux-faq-fc3test2/
The questions appear like this:
Q:.
What is SELinux?
A:.
SELinux (Security-Enhanced Linux) in Fedora Core is an
implementation of Mandatory Access Control (MAC) ...
This line break is caused by a lack of <p></p> tags wrapping the "Q:."
and "A:." labels. Within the several CSSes that style this page, one of
them gives a little padding to the <p></p> that makes this visible.
The symptom is in the HTML:
<tr class="question"><td align="left" valign="top"><a
name="id3355431"></a><a name="id3355434"></a><b>Q:. </b></td><td
align="left" valign="top"><p>
What is SELinux?
</p></td></tr><tr class="answer"><td align="left" valign="top"><b>A:. </b></td><td align="left" valign="top"><p>
SELinux (<i class="firstterm">Security-Enhanced Linux</i>) in Fedora Core is
an implementation of <i class="firstterm">Mandatory Access
Control</i> (<span class="abbrev">MAC</span>) ...
The HTML renders in this way using a standard stylesheet. I can
reproduce the error with the following:
xmlto -x /usr/share/sgml/docbook/xsl-stylesheets/html/chunk.xsl html \
selinux-faq-en.xml
The stylesheet comes from docbook-style-xsl-1.61.2-2.1 running on Fedora
Core 1.
Thanks - Karsten
--
Karsten Wade, RHCE, Tech Writer
a lemon is just a melon in disguise
http://people.redhat.com/kwade/
gpg fingerprint: 2680 DBFD D968 3141 0115 5F1B D992 0E06 AD0E 0C41