I use formal tables, figures, and
examples in PDF output, but I’d like to strip out the numbers for tables,
figures, and examples in HTML output. I’ve tried doing that by following the
instructions in DocBook XSL: The Complete Guide:
http://www.sagehill.net/docbookxsl/PrintTableStyles.html#TablesUnnumbered
Here’s what my customization looks
like:
<xsl:param
name="local.l10n.xml"
select="document('')"/>
<l:i18n
xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
<l:l10n
language="en">
<l:context
name="title">
<l:template
name="table"
text="%t"
/>
<l:template
name="figure"
text="%t"
/>
<l:template
name="example"
text="%t"
/>
</l:context>
<l:context
name="xref-number-and-title">
<l:template
name="table"
text="the
table titled “%t”" />
<l:template
name="figure"
text="the
figure titled “%t”" />
<l:template
name="example"
text="the
example titled “%t”" />
</l:context>
<l:context
name="xref">
<l:template
name="page.citation"
text="
on page %p" />
<l:template
name="section"
text="%t"/>
<l:template
name="olink.document.citation"
text="
in %o"/>
<l:template
name="olink.page.citation"
text="
on page %p" />
</l:context>
</l:l10n>
</l:i18n>
<xsl:template
match="table"
mode="label.markup"/>
<xsl:template
match="figure"
mode="label.markup"/>
<xsl:template
match="example"
mode="label.markup"/>
Although the last three lines
effectively remove the number from the table, figure, and example titles, they
don’t remove the word “Table”, “Figure”, and “Example”. I’m still left with
titles like this:
Table . Sample table
title
Figure . Sample figure
title
Example . Sample figure
title
Anyone know what I’m doing wrong?
My customization doesn’t appear to be stripping out the “Table %n.”, “Figure
%n.”, and “Example %n.”
BTW, I’m using DocBook 4.5 XSL
1.7.3.2 and Saxon 6.5.3 for my XSLT.
Regards,
Jeff