Page 1 of 1

Cascade xml.lang attribute in DITA Maps Manager

Posted: Fri Sep 19, 2025 2:02 pm
by Frank Ralf
Hello,

According to the DITA spec there is no cascading from map to topics:
The @xml:lang attribute can be specified on the <map> element. The @xml:lang attribute cascades within the map in the same way that it cascades within a topic. However, since the @xml:lang attribute is an inherent property of the XML document, the value of the @xml:lang attribute does not cascade from one map to another or from a map to a topic; the value of the @xml:lang attribute that is specified in a map does not override @xml:lang values that are specified in other maps or in topics.
Source: www.oxygenxml.com/dita/1.3/specs/archSpec/base/xmllang.html

However, as far as I can tell, the xml:lang attribute does cascade when transforming a DITA map with the DITA Open Toolkit. It would be nice if this would be reflected in Author mode as well. Example: Displaying German task labels if the document language is set to German on the top map <map xml:lang="de-DE">.

Best regards,
Frank