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] | [List Home]


Subject: part numbering suppression - again


Hello all,

 

We are just adding parts to our documents and I’m attempting to use a customization that was listed on the net to suppress the part numbering.  However, I’m having difficulties getting the language customization working.

 

Even when I use only the suggested code for my language customization with the modification of removing the semi-colon the part remains with numbering on it.

 

I wouldn’t be surprised if this is a syntax change since I tried to match chapter title and just print %n (number) but I didn’t seem to grab the object there either.

 

FYI:  I am using dtd-4.5 with docbook-xsl-1.71.1 to fo’s then pdf with XSL Formatter V4.0.

 

Here’s the code suggested:

<xsl:param name="local.l10n.xml" select="document('')"/>
<l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0";><!—remove this semi-colon to validate, code pasted as found on net-->
  <l:l10n language="en">
    <l:context name="title">
      <l:template name="part" text="%t"/>
    </l:context>
  </l:l10n>
</l:i18n>

 

Here’s the code implementation 1

            <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="part" text="%t"/>

<!--removes numbering from part titles-->

                                    </l:context>

                                    <l:context name="xref-number-and-title">

                                                <l:template name="table" text="the table titled ?%t?"/>

                                    </l:context>

                                    <!--name="table"  and name="xref-number-and-title"  remove table titles-->

                                    <l:gentext key="TableofContents" text="Contents"/>

                                    <!--The above changes the TOC title from Table of Contents to Contents when printed in English-->

                        </l:l10n>

            </l:i18n>

 

Here’s the code implementation 2

 

            <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:context>

                                    <l:context name="title">

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

                                    </l:context>

                                    <!--removes numbering from part titles-->

                                    <l:context name="xref-number-and-title">

                                                <l:template name="table" text="the table titled ?%t?"/>

                                    </l:context>

                                    <!--name="table"  and name="xref-number-and-title"  remove table titles-->

                                    <l:gentext key="TableofContents" text="Contents"/>

                                    <!--The above changes the TOC title from Table of Contents to Contents when printed in English-->

                        </l:l10n>

            </l:i18n>

 

Is there another way to remove the numbering from Part without redesigning the templates?

 

Thanks,

 

Julie May

CastleRock Research

PS: I did double check that the document is set to en as well.



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