This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: HTML stylesheet output: abbr with title attribute value
- From: Bob Stayton <bobs at caldera dot com>
- To: ed nixon <ed dot nixon at lynnparkplace dot org>
- Cc: docbook at lists dot oasis-open dot org
- Date: Wed, 29 Jan 2003 10:44:52 -0800
- Subject: Re: DOCBOOK: HTML stylesheet output: abbr with title attribute value
- References: <3E37ED2F.1060704@lynnparkplace.org>
On Wed, Jan 29, 2003 at 10:03:11AM -0500, ed nixon wrote:
> Is there a piece of Docbook markup that gets transformed into and HTML
> abreviation tag? To create the following output, for example:
>
> <abbr title="Web Accessibility Initiative">WAI</abbr>
>
> If so, which element is it and which attribute is used to carry the
> title attribute value across? <acronym> seems like the logical choice
> for this example, but it's unclear to me where the title attribute value
> would be placed.
There is no DocBook XSL template that outputs the HTML
<abbr> tag. And there is no attribute on acronym that
is for a title. There is some discussion in the DocBook
Technical Committee about annotations like that, but
nothing in the DTD yet.
If you wanted to stuff your title in the xreflabel attribute,
you could customize the stylesheet by adding something like
this to your stylesheet customization layer:
<xsl:template match="acronym">
<abbr>
<xsl:attribute name="title" select="@xreflabel"/>
<xsl:call-template name="inline.charseq"/>
</abbr>
</xsl:template>
The xreflabel isn't quite the right attribute to use,
but there isn't a better one at this point.
--
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