Hi,
Thanks for the reply.
Yes, i have a customization layer. Also, i didn't get the messages with the
original docbook xsl.
I am using the template for table of contents in the customization layer:
<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:gentext key="TableofContents" text="Contents"/>
</l:l10n>
</l:i18n>
Thanks and Regards,
Anmol
On Mon, Jun 2, 2014 at 11:15 PM, Bob Stayton <[email protected]> wrote:
> Hi,
> Normally the stylesheet does not generate such messages. To turn them
> off, we need to discover the cause.
>
> This message is coming from the template named 'gentext.template' in
> common/l10n.xsl. That XSL template is part of the machinery that generates
> text, such as for the table of contents or cross references.
>
> Specifically, that template is called when a title is being generated for
> the given element. It is a little confusing because the "template"
> referred to in the message is one of the <l:template> elements in the
> gentext file such as common/en.xml to define text patterns for generated
> text. Since para does not have a title, there is no gentext template for
> it, hence the error message.
>
> The question then becomes, under what circumstances is this template being
> called in the context of a para. Are you using a customization layer? Do
> you get the same result when you use the stock stylesheet?
>
> Bob Stayton
> Sagehill Enterprises
> [email protected]
>
>
> On 6/1/2014 9:47 PM, anmol gupta wrote:
>
>> Hi,
>>
>> I am getting a lot of warning messages although the pdfs get generated
>> correctly.
>>
>> the warnings look like:
>>
>> No template for "/book/chapter/section/section/section/note/para" (or any
>> of its leaves) exists in the context named "title" in the "en"
>> localization.
>>
>> No template for "/book/chapter/section/section/para" (or any of its
>> leaves)
>> exists in the context named "title" in the "en" localization.
>>
>> No template for "/book/chapter/section/section/orderedlist/listitem/para"
>> (or any of its leaves) exists in the context named "title" in the "en"
>> localization.
>>
>> No template for "/book/chapter/section/section/orderedlist/listitem/para"
>> (or any of its leaves) exists in the context named "title" in the "en"
>> localization.
>>
>> No template for "/book/chapter/section/section/orderedlist/listitem/para"
>> (or any of its leaves) exists in the context named "title" in the "en"
>> localization.
>>
>> No template for
>> "/book/chapter/section/section/orderedlist/listitem/note/para" (or any of
>> its leaves) exists in the context named "title" in the "en" localization.
>>
>>
>> Is there way to suppress these warning?
>>
>>
>> Regards,
>>
>> Anmol
>>
>>