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


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

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]