There was a duplicate <l:i18n> section in my customization stylesheet.
Once I removed that, everything worked fine.

 

Thanks,

Jeff

 

________________________________

From: Bob Stayton [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 11, 2007 12:32 PM
To: Jeff Powanda; [email protected]
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
[EMAIL PROTECTED]

 

 

        ----- Original Message ----- 

        From: Jeff Powanda <mailto:[EMAIL PROTECTED]>  

        To: [email protected] 

        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#TablesUnnumbere
d

         

        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 &#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>  

                  <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" />

                  </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

Reply via email to