This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: [docbook-apps] Program Listings within Paragraphs (XHTML Output)
- From: "Billard, Trish" <trish dot billard at hp dot com>
- To: <webdesign at dawnmist dot net>, <docbook-apps at lists dot oasis-open dot org>
- Date: Fri, 19 Dec 2003 09:48:38 -0800
- Subject: RE: [docbook-apps] Program Listings within Paragraphs (XHTML Output)
You might consider using <computeroutput> for these things instead of <programlisting>. <computeroutput> is formatted inline in both HTML and PDF.
Cheers,
--Trish
Trish Billard
trish.billard@hp.com
(408) 285-5462
-----Original Message-----
From: Janeene Webb [mailto:webdesign@dawnmist.net]
Sent: Thursday, December 18, 2003 7:30 PM
To: docbook-apps@lists.oasis-open.org
Subject: [docbook-apps] Program Listings within Paragraphs (XHTML
Output)
Hi,
Have got a few places where I need to put system error messages within
paragraphs, with standard formatting for program listing stuff *except* it
needs to be inline rather than as a separate block.
Have got it working for PDF use, but in testing things just noticed that for
xhtml the output breaks the original paragraph up so that each individual
part is a separate block.
An example of the input is:
====================
<para>If the Error Message <programlisting role="inline">No
Good</programlisting> appears, something's wrong.</para>
The output after XSL processing is:
====================
<p>If the Error Message</p>
<pre class="inline">No Good</pre>
<p>appears, something's wrong.</p>
Note that the paragraph is actually being closed in the middle, and a new one
started after the error message.
I need to be able to nest "inline" programlistings inside the paragraph. Any
suggestions for either what to change the programlisting elements to or which
template to modify to enable a fixed width type font for the error messages?
Cheers, Janeene.
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.