On 05/28/2017 01:43 AM, Leif Halvard Silli wrote:
By specifying <assembly xml:lang="fr">, I expeceted to get the Table of
Contents heading of the realized document to be generated in French
(when converting to HTML).[1]

But that did not happen: It was generated in English. (For the record:
Doing <assembly xml:lang="fr"> */does/* affect the language specified by
xml:lang in the the output HTML document.)

I cannot reproduce this:

---
<assembly xml:lang="fr"> */does/* affect the language specified by
xml:lang in the the output HTML document
---

I mean, in my tests, <assembly xml:lang="fr"> has no effect whatsoever on the generated document.




Only when I specified <structure xml:lang="fr">, did the Table of
Contents heading display in French.

Yes, that's right.




XML elements inherit the language. Thus this might be an assembly
processor bug.

It's not that clear.

The <assembly> is a document in itself: a specification (like a makefile or an Ant build.xml file) having its own title, author and language.

The title, author and language of a specification may be completely unrelated to the title, author and language of the documents generated using this specification.

That's why I'm not sure that you have reported a bug.



Also please note that the documentation of DocBook v5.1 assemblies is currently pretty sketchy:

http://tdg.docbook.org/tdg/5.1/ch06.html

We expect to fix issues like the one you have reported once DocBook v5.1 assemblies becomes better documented. (XMLmind has already filed several bug reports signaling missing information in the documentation of DocBook v5.1 assemblies.)





[1] FYI, I worked with the source code of “DocBook Assemblies and Topics
for the Impatient
<http://www.xmlmind.com/tutorials/DocBookAssemblies/index.html>”.


--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to