Page 1 of 1

RNG: @xml-lang causes related links error

Posted: Fri Feb 20, 2015 1:41 pm
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>

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

Posted: Fri Feb 20, 2015 3:15 pm
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

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

Posted: Fri Feb 20, 2015 4:04 pm
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

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

Posted: Fri Feb 20, 2015 4:12 pm
by Frank Ralf

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

Posted: Wed Feb 25, 2015 4:10 pm
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