There was a duplicate <l:i18n> section in my customization stylesheet.
Once I removed that, everything worked fine.
Thanks,
Jeff
________________________________
From: Bob Stayton [mailto:
bobs@sagehill.net]
Sent: Thursday, October 11, 2007 12:32 PM
To: Jeff Powanda;
docbook-apps@lists.oasis-open.orgSubject: Re: [docbook-apps] Removing number labels from tables, figures,
and examples
This is odd. I cut and pasted your customization into a customization
layer, and the figures, tables, and examples do not show "Table" or
"Figure", they just show the title. Have you also customized the
formal.object.heading template?
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net ----- Original Message -----
From: Jeff Powanda <mailto:
jpowanda@vocera.com>
To:
docbook-apps@lists.oasis-open.org Sent: Thursday, October 11, 2007 12:15 PM
Subject: [docbook-apps] Removing number labels from tables,
figures, and examples
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