[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] mulitple
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
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]