OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Re: DOCBOOK: HTML stylesheet output: abbr with title attribute value


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


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC