RNG: @xml-lang causes related links error
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 482
- Joined: Thu Jan 23, 2014 2:29 pm
- Location: Hamburg
- Contact:
RNG: @xml-lang causes related links error
Post by Frank Ralf »
Hi,
When running a PDF transformation on the below DITA RNG files I get the following four error messages:
DITA-OT error messages
This is probably a bug with the RNG processing as there are no related links defined in the map.
Kind regards,
Frank
DITA RNG test files
When running a PDF transformation on the below DITA RNG files I get the following four error messages:
DITA-OT error messages
Code: Select all
[DOTX067E]: No string named 'Related concepts' was found for language 'de-DE'. Add a mapping for the string 'Related concepts'. The location of this problem was at (File = RNG_topic_with_xml-lang.dita, Element = topic:1;4:47)
[DOTX067E]: No string named 'Related tasks'...
[DOTX067E]: No string named 'Related references' ...
[DOTX067E]: No string named 'Related information' ...
Kind regards,
Frank
DITA RNG test files
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="urn:dita-ng:dita:rng:map.rng" schematypens="http://relaxng.org/ns/structure/1.0"?>
<map>
<title>DITA Topic Map</title>
<topicref href="RNG_topic_with_xml-lang.dita" />
</map>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="urn:dita-ng:dita:rng:topic.rng" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="urn:dita-ng:dita:rng:topic.rng" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<topic id="topic_yhf_htf_dr" xml:lang="de-DE">
<title>DITA RNG Topic</title>
<body>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</body>
</topic>
Frank Ralf
parson AG
www.parson-europe.com
parson AG
www.parson-europe.com
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: RNG: @xml-lang causes related links error
Hi Frank,
Actually the same thing can be reproduced with DTD-based xml:lang="de-DE" maps and topics.
It seems that the translated variables for German:
DITA-OT\plugins\org.dita.pdf2\cfg\common\vars\de.xml
contain less matches than the English ones:
DITA-OT\plugins\org.dita.pdf2\cfg\common\vars\en.xml
The XSLT DITA-OT/plugins/org.dita.pdf2/xsl/fo/links.xsl seems to require certain related-links keys to be translated although they are not used for anything because by default in PDF no related link sections are built.
So you can either translate those keys (and maybe share them by adding an issue on the DITA OT bugs list) or ignore them.
Regards,
Radu
Actually the same thing can be reproduced with DTD-based xml:lang="de-DE" maps and topics.
It seems that the translated variables for German:
DITA-OT\plugins\org.dita.pdf2\cfg\common\vars\de.xml
contain less matches than the English ones:
DITA-OT\plugins\org.dita.pdf2\cfg\common\vars\en.xml
The XSLT DITA-OT/plugins/org.dita.pdf2/xsl/fo/links.xsl seems to require certain related-links keys to be translated although they are not used for anything because by default in PDF no related link sections are built.
So you can either translate those keys (and maybe share them by adding an issue on the DITA OT bugs list) or ignore them.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 482
- Joined: Thu Jan 23, 2014 2:29 pm
- Location: Hamburg
- Contact:
Re: RNG: @xml-lang causes related links error
Post by Frank Ralf »
Hi Radu,
Thanks for testing. I will have a look at the files in question and provide a translation asap.
Kind regards,
Frank
Thanks for testing. I will have a look at the files in question and provide a translation asap.
Kind regards,
Frank
Frank Ralf
parson AG
www.parson-europe.com
parson AG
www.parson-europe.com
-
- Posts: 482
- Joined: Thu Jan 23, 2014 2:29 pm
- Location: Hamburg
- Contact:
Re: RNG: @xml-lang causes related links error
Post by Frank Ralf »
Issue filed at https://github.com/dita-ot/dita-ot/issues/1857
Frank Ralf
parson AG
www.parson-europe.com
parson AG
www.parson-europe.com
-
- Posts: 482
- Joined: Thu Jan 23, 2014 2:29 pm
- Location: Hamburg
- Contact:
Re: RNG: @xml-lang causes related links error
Post by Frank Ralf »
JFTR, This seems to be a bug with older versions of the DITA-OT. According to https://github.com/dita-ot/dita-ot/issues/1857 the problem cannot be reproduced with DITA-OT 2.1 anymore.
Frank
Frank
Frank Ralf
parson AG
www.parson-europe.com
parson AG
www.parson-europe.com
Return to “DITA (Editing and Publishing DITA Content)”
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