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]

[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


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