OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: DocBook Assemblies: is xml:lang considered in <structure>?


currently I'm trying to inject language information from a <structure> element,
but it doesn't work as expected. Either I'm doing something completely wrong or
this is a bug.

Let's assume I have an assembly structure like this:

<assembly version="5.2" xml:lang="en"
     <!-- ...pruned... -->

     <!-- ... modules comes here ... -->

The real content of <resources> and <structure> isn't that important for this
post. Let's focus entirely on <structure>. As you can see, it doesn't contain a
resourceref attribute.

When I call the assemble.xsl stylesheet I get the result file. So far, so good.

However, the result file doesn't contain any language. That was to be expected,
because we didn't set one. So in my naive view I thought I just add the
language information to <structure> like this:

  <structure xml:lang="en">

However, this isn't taken into account. My next try was to add it to <output/>:

    <output xml:lang="en"/>

This also has no effect.

I've looked into the assemble.xsl stylesheet and it seems this was an oversight
in the following line:


If I change it to this line, it works:

  <xsl:copy-of select="@xml:id|@xml:lang"/>

Can someone confirm this?
If this is true, it means an author cannot set a language (or other attributes)
on the output.

I have two additional questions:

1. What if we have _two_ xml:lang attributes, both on <structure> and on
   <output>. Which wins? Which has the higher priority?
   Is that specified or defined anywhere?

2. What if an author wants to inject other attributes like role, os, or others?
   Where it is supposed to be inserted? Also same as point 1, who wins when we
   have the same attributes?

Thanks for your idea and answers!

  Thomas Schraitle

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]