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


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

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

Subject: 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
----- Original Message -----
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:




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 name="xref-number-and-title">

                  <l:template name="table" text="the table titled &#8220;%t&#8221;" />

                  <l:template name="figure" text="the figure titled &#8220;%t&#8221;" />

                  <l:template name="example" text="the example titled &#8220;%t&#8221;" />


          <l:context name="xref">

                  <l:template name="page.citation" text=" on page&#160;%p" />

                  <l:template name="section" text="%t"/>

                  <l:template name="olink.document.citation" text=" in&#160;%o"/>

                  <l:template name="olink.page.citation" text=" on page&#160;%p" />




      <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 and Saxon 6.5.3 for my XSLT.




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