This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] different lang attributes in an article
- From: Bernhard Kohl <kohl at hbz-nrw dot de>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Thu, 18 Nov 2004 15:19:14 +0100
- Subject: [docbook-apps] different lang attributes in an article
- Organization: HBZ NRW
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