[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] mulitple
On Tuesday 13 July 2004 14:29, Gisbert Amm wrote: > 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. I have 1 main file, where I first include the standard docbook file. And then I include two other xsl-files. usecase:xsl and interests.xsl. That main file I use to generate my docbook. In usecase.xsl there is this: <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="usecase" text="Usecase %t"/> <l:template name="usecase/alternatecourses" text="Alternatieve Paden"/> </l:context> </l:l10n> <l:l10n language="en"> <l:context name="title"> <l:template name="usecase" text="Usecase %t"/> <l:template name="usecase/alternatecourses" text="Alternate Courses"/> </l:context> </l:l10n> </l:i18n> In interests.xsl there is this: <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="interestlist" text="Belanghebbenden"/> </l:context> </l:l10n> <l:l10n language="en"> <l:context name="title"> <l:template name="interestlist" text="Interests"/> </l:context> </l:l10n> </l:i18n> Because I want to be able to localization-specific titles. I like to keep these in seperate files because I like to keep the desgin modular. Thanks, Wim
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]