Re: [docbook-apps] different lang attributes in an article

From
Bob Stayton <>
Date
2004-11-18T17:27:36+00:00
ID
017901c4cd93$e1237360$6600a8c0@toshiro
Thread
Re: [docbook-apps] different lang attributes in an article
Hi,
What you expected is correct and what you got is wrong.  It is a bug that
was introduced in 1.66.1.   I just checked in the fix for it, so it should
be in 1.67.1.  Or you can try the snapshot distribution from CVS

Bob Stayton
Sagehill Enterprises
DocBook Consulting



----- Original Message ----- 
From: "Bernhard Kohl" <>
To: <>
Sent: Thursday, November 18, 2004 6:19 AM
Subject: [docbook-apps] different lang attributes in an article


> Hi,
>
> I did run into a problem with lang attributes when
> converting a docbook article to HTML.
>
> The article is written in German language but there a two
> abstracts: one in German and the other one in English.
>
> <article lang="de">
> ...
>    <articleinfo>
>    ...
>       <abstract lang="de">...</abstract>
>       <abstract lang="en">...</abstract>
>
>
> Now, what I expected to see in HTML was:
>
>      Zusammenfassung
>      ...
>
>
>      Absctract
>      ...
>
>
> Nope. What is generated looks like this:
>
>      Zusammenfassung
>      ...
>
>
>      Zusammenfassung
>      ...
>
>
> After some trial I found that omitting the explicit language
> attribute from the article tag and setting
>
>   <xsl:param name="l10n.gentext.default.language" select="'de'"/>
>
> will produce the desired output in different languages.
>
> But obvious this is not my preferred solution as it requires
> to keep the base language information outside of an article.
> I'd prefer to keep the language information within each
> article.
>
> Is this the intended way docbook xslt 1.66 stylesheets do
> work or am I missing something?
>
> Any hints appreciated and thanks in advance.
>
>
> Bernhard Kohl
>
>
>