This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]