Closed ToshihikoMakita closed 8 years ago
@robander, do you remember which issue covered this same case? The spec explicitly says xml:lang
doesn't cascade from map to map, so I assume it doesn't cascade from map to topic. The spec also says
If the @xml:lang attribute on the document (outermost) element of a map or of a top-level topic has no value, the processor should assume a default value. The default value of the processor may be either fixed, configurable, or derived from the content itself, such as the @xml:lang attribute on the primary map file. As the default value of a processor may be fixed, it is strongly recommended that the @xml:lang attribute be set on each map and top-level topic.
@robander @drmacro, do you think the current behaviour is correct or not WRT the spec?
The behaviour changed in #415
Hi Jarno,
As you have quoted from specification, I think it is better to use bookmap/@xml:lang as defaut value. I'm making a DITA to PDF stylesheet for mutiple language in one set of DITA instance. So it is very important to adopt default value from the primary map (bookmap). Please tell me your opinion.
Regards,
Any progress on this issue?
This will not affect following user.
But there are lot of DITA instances that does not explicitly specify topic/@xml:lnag. In this case user believes that map/@xml:lnag is used for topic/@xml:lang.
I'm developing multiple language stylesheet per user request. In this stylesheet the style is controlled by @xml:lang attribute of the element. So applying topic/@xml:lang="en" is very headache problem.
I'm waiting for your reply.
Regards,
Just noticed the long-ago question on this. I think it would be appropriate, especially for PDF, if our processing default was "whatever language is specified for the map", and if nothing is specified on the map it can fall back to 'en' as today. I think this would mean updating the merged file so that it only adds a default to the map, and updating processing for any topic context so that it falls back to the value on the map.
Thank you for your comment. Anyway I am very appreciated if "TopicMerge" changes current behavior. This problem is not meaningful for commercial CMS users because CMS strictly controls @xml:lang attribute for every topic. But there are lots of user topics that have no explicit @xml:lang. In this case they want to treat map/@xml-lang as representative language.
Fixed in #2356
Thank you very much!
I'm facing a serious problem found in DITA-OT 1.7.3. The problem is that DITA-OT TopicMerge sets unexpected
@xml:lang
attribute to topic. Here is a example.[bookmap: sample_ja.bookmap]
[sample.xml]
[sample_ja_MERGED.xml]
As shown above TopicMerge sets topic/@xml:lang="en" as default value.
Until now we use DITA-OT 1.5.3 and our stylesheet honors
bookmap/@xml:lang
. The stylesheet inheritbookmap/@xml:lang
to the topic and element level. So according to this situation,bookmap/@xml:lang="ja"
should be honored.Are there any TopicMerge option to avoid setting
@xml:lang="en"
as default value?