RNG: @xml-lang causes related links error

Post here questions and problems related to editing and publishing DITA content.
Frank Ralf
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

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' ...
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

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
Radu
Posts: 9446
Joined: Fri Jul 09, 2004 5:18 pm

Re: RNG: @xml-lang causes related links error

Post by Radu »

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Frank Ralf
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
Frank Ralf
parson AG
www.parson-europe.com
Frank Ralf
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 »

Frank Ralf
parson AG
www.parson-europe.com
Frank Ralf
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 Ralf
parson AG
www.parson-europe.com
Post Reply