Cascade xml.lang attribute in DITA Maps Manager
Are you missing a feature? Request its implementation here.
-
- Posts: 490
- Joined: Thu Jan 23, 2014 2:29 pm
- Location: Hamburg
- Contact:
Cascade xml.lang attribute in DITA Maps Manager
Post by Frank Ralf »
Hello,
According to the DITA spec there is no cascading from map to topics:
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
According to the DITA spec there is no cascading from map to topics:
Source: www.oxygenxml.com/dita/1.3/specs/archSpec/base/xmllang.htmlThe @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.
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
Frank Ralf
parson AG
www.parson-europe.com
parson AG
www.parson-europe.com
-
- Posts: 9528
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Cascade xml.lang attribute in DITA Maps Manager
Hi Frank,
As you said, according to the DITA specs, the xml:lang does not cascade from map to topics.
In the DITA to PDF publishing (and not in the DITA to HTML or other formats publishing) as the end result is a single large merged XML document which gets converted to XSL-FO, automatically the xml:lang cascades because of the nature of that single XML document. But is just an implementation dependent behavior so we do not have plans to present in the editor the static texts with the language the topic might inherit at map level. Correct to the specification would be for each topic to define the xml:lang.
Regards,
Radu
As you said, according to the DITA specs, the xml:lang does not cascade from map to topics.
In the DITA to PDF publishing (and not in the DITA to HTML or other formats publishing) as the end result is a single large merged XML document which gets converted to XSL-FO, automatically the xml:lang cascades because of the nature of that single XML document. But is just an implementation dependent behavior so we do not have plans to present in the editor the static texts with the language the topic might inherit at map level. Correct to the specification would be for each topic to define the xml:lang.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 490
- Joined: Thu Jan 23, 2014 2:29 pm
- Location: Hamburg
- Contact:
Re: Cascade xml.lang attribute in DITA Maps Manager
Post by Frank Ralf »
Hi Radu,
Thanks for your quick response. You are right in following the standard.
Best regards,
Frank
Thanks for your quick response. You are right in following the standard.
Best regards,
Frank
Frank Ralf
parson AG
www.parson-europe.com
parson AG
www.parson-europe.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service