This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] mulitple
- From: Gisbert Amm <gia at webde-ag dot de>
- To: Wim Lemkens <wim dot lemkens at tiscali dot be>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Tue, 13 Jul 2004 14:29:44 +0200
- Subject: Re: [docbook-apps] mulitple
- References: <200407121838.46502.wim.lemkens@tiscali.be>
Wim Lemkens wrote:
On Monday 12 July 2004 09:48, Gisbert Amm wrote:
> Wim Lemkens wrote:
> > Hello,
> >
> > I have an extension that includes the standard docbook and 2 other
.xsl
> > sheets. In those 2 sheets I both have some localizations for my
> > templates.
> >
> > I declared the this way:
> > <xsl:param name="local.l10n.xml" select="document('')"/>
> > <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
> > <l:l10n language="nl">
> > <l:context name="title">
> > <l:template name="something" text="Iets"/>
> > </l:context>
> > </l:l10n>
> > <l:l10n language="en">
> > <l:context name="title">
> > <l:template name="something" text="Something"/>
> > </l:context>
> > </l:l10n>
> > </l:i18n>
> >
> > But it seems that my second sheet overwrites the definitions of my
first
> > sheet. How should I declare it, so that I am able to keep de
> > declarations in
> > these seperate documents?
>
> Are you using xsl:import or xsl:include to merge your modules in?
import, but including just reverses the problem.
(import A, import B -> B used)
(include A, include B -> A used)
Do you have the line
<xsl:param name="local.l10n.xml" select="document('')"/>
in all three stylesheets? If so, this would set the parameter
"local.l10n.xml" to a different value each time document('') is called
(see the first callout on
http://www.sagehill.net/docbookxsl/CustomGentext.html#CustomGenText) -
and the value with the highest import precedence would win (as you
obviously experienced).
But I'm not quite sure that I understand: What exactly do you want to
achieve? Merge the contents of two or more different l:i18n-Elements
into one?
I've just tried out something like that using xsl:variable, but it
doesn't work as I thougt.
Regards,
Gisbert Amm
Gisbert
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.