This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: how to change the displayed style of<lineannotation>?
- From: Bob Stayton <bobs at caldera dot com>
- To: "Robert P. J. Day" <rpjday at mindspring dot com>,docbook apps list <docbook-apps at lists dot oasis-open dot org>
- Date: Wed, 13 Nov 2002 10:51:16 -0800
- Subject: Re: DOCBOOK-APPS: how to change the displayed style of<lineannotation>?
- References: <Pine.LNX.4.44.0211130603160.2270-100000@dell>
On Wed, Nov 13, 2002 at 06:05:26AM -0500, Robert P. J. Day wrote:
>
> currently, in a <screen> element, anything i put in a
> <lineannotation> element is displayed in regular, courier font.
> what's the easiest way to have that italic, times roman
> instead?
>
> is there a specific XSL stylesheet directive for doing this,
> or should i go through the CSS decoration? and am i making any
> sense for this early in the morning?
It looks like the XSL stylesheets don't give you much
help on this. There is no parameter for this,
and currently 'lineannotation' is not
wrapped in a <span class="lineannotation"> for HTML output,
so CSS won't know how to select it. It currently
just does plain character sequence:
<xsl:template match="lineannotation">
<xsl:call-template name="inline.charseq"/>
</xsl:template>
You'd have to customize this template to add the <span> so
CSS would work:
<xsl:template match="lineannotation">
<span class="lineannotation"><xsl:call-template name="inline.charseq"/></span>
</xsl:template>
I think this might make a good feature request for
the stylesheets.
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com