A parameter of the same name can be defined if it has a
higher import
precedence. Parameters defined in a stylesheet (such as a
customization
layer) have a higher import precedence than those same
parameters contained
in an imported stylesheet. So when your customization layer
imports the
DocBook XSL stylesheet, any parameters you define in your
customization
layer have higher import precedence and will be used.
You only get a conflict when you xsl:include rather than
xsl:import the
other stylesheet. That gives the two parameters the same
import
precedence. Given that you are borrowing code rather than
importing the
DocBook stylesheet, it's hard to say what might be going
wrong.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs sagehill.net
----- Original Message -----
From: "Webmaster" <Webmaster comtrol.com>
To: "Docbook-Apps" <docbook-apps lists.oasis-open.org>
Sent: Wednesday, May 10, 2006 3:52 PM
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/CustomGent
ext.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
>
>
>
------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribe lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help lists.oasis-open.org
|