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] adding to the en internalization


Oh. Never mind. I figured it out. It had to do with the import/include and
which xsl I put it in.

Thanks!
LN

-----Original Message-----
From: Webmaster 
Sent: Wednesday, May 10, 2006 5:52 PM
To: Docbook-Apps
Subject: [docbook-apps] adding to the en internalization


Hi.


I'm trying to add new templates in the context of "title" to the en.xml
file. and rather than modifying the en.xml file, I'm following the
instructions found here
http://www.sagehill.net/docbookxsl/CustomGentext.html#CustomGenText

However when I add the this to my customization layer, the compiler
complains that the parameter name="local.l10n.xml is already defined. Which
is true - it's defined in common/l10n.xsl!  But if I delete that line,
compiler complains that:

"No template for "/products" (or any of its leaves) exists in the context
named "title" in the "en" localization."

code (without the param redefined):

<l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0";>
  <l:l10n language="en">
    <l:context name="title">
      <l:template name="products" text="%t"/>
    </l:context>
  </l:l10n>
</l:i18n>


If I add: <l:template name="products" text="%t"/> to the en.xml in the
common directory, it works great.

Background:  I'm trying to use the chunkinging code from docbook, in my own
library and my root element is products

How can I get my stylesheet to work?

Thanks!
LN

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org


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