WebHelp Responsive transform causes java.io.FileNotFoundException
Posted: Thu Jan 03, 2019 1:45 am
Note: This problem only occurs in your nightly development build, not in Oxygen 20.1.
Due to a previously reported problem (topic18323.html), I am now using your nightly development build of the DITA OT. With this build, I am getting the following error with the out-of-the-box "DITA Map WebHelp Responsive" transform:
...which is funny, since there are no index terms anywhere in my document. Using the default DITA OT (Oxygen 20.1 , build 2018122403) the transform runs without error. I've pared my code down to create this example so that you can recreate this and figure out what's going on.
ditatest.ditamap:
keydefs-numbers.ditamap:
keydefs-topics.ditamap:
conrefs-text.dita:
gov.ditamap:
abstract.dita:
Directory tree:
Thanks.
Rick
Due to a previously reported problem (topic18323.html), I am now using your nightly development build of the DITA OT. With this build, I am getting the following error with the out-of-the-box "DITA Map WebHelp Responsive" transform:
Code: Select all
System ID: /Users/rtimkovi/zdebugindex/ditatest.ditamap
Scenario: DITA Map WebHelp Responsive
Input file: /Users/rtimkovi/zdebugindex/ditatest.ditamap
Document type: DITA Map
Engine name: XSLT
Severity: error
Description: java.io.FileNotFoundException: /Users/rtimkovi/zdebugindex/temp/webhelp-responsive/SATC common libraries/topics/conrefs-text.dita.indexterms (No such file or directory) Cause: java.io.FileNotFoundException: /Users/rtimkovi/zdebugindex/temp/webhelp-responsive/SATC common libraries/topics/conrefs-text.dita.indexterms (No such file or directory)
Start location: 60:0
ditatest.ditamap:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<map>
<title>SOP for DITA</title>
<topichead processing-role="resource-only">
<topicmeta>
<navtitle translate="no">Libraries </navtitle>
</topicmeta>
<topicref href="SATC%20common%20libraries/keydefs-numbers.ditamap" format="ditamap"
processing-role="resource-only"/>
<topicref href="SATC%20common%20libraries/keydefs-topics.ditamap" format="ditamap"
processing-role="resource-only"/>
</topichead>
<mapref href="gov.ditamap"/>
</map>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<map>
<title translate="no">Numbers - key definitions</title>
<topichead>
<topicmeta>
<navtitle>Common</navtitle>
</topicmeta>
<keydef keys="copyright_year">
<topicmeta>
<keywords>
<keyword>2019</keyword>
</keywords>
</topicmeta>
</keydef>
</topichead>
<topichead>
<topicmeta>
<navtitle>Analytics</navtitle>
</topicmeta>
</topichead>
</map>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<map>
<title translate="no">Topics - key definitions</title>
<topichead>
<topicmeta>
<navtitle>Common</navtitle>
</topicmeta>
<keydef keys="conrefs-text" href="../SATC%20common%20libraries/topics/conrefs-text.dita"/>
</topichead>
<topichead>
<topicmeta>
<navtitle>Analytics</navtitle>
</topicmeta>
</topichead>
</map>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="conrefs-text">
<title translate="no">Content references for text</title>
<body>
<section>
<title translate="no">Common</title>
<p><ph id="copyright_text">© <ph keyref="copyright_year"/> Amazon Web Services, Inc. or
its affiliates. All rights reserved.</ph></p>
</section>
<section>
<title translate="no">Analytics</title>
<p/>
</section>
</body>
</topic>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<map>
<title>AWS Governance at Scale</title>
<topicref href="aws-governance-at-scale/abstract.dita"/>
</map>
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="abstract">
<title>Abstract</title>
<body>
<p>Customers need to ...</p>
<p><ph conkeyref="conrefs-text/copyright_text"/></p>
</body>
</topic>
Code: Select all
...zdebugindex/
ditatest.ditamap
gov.ditamap
aws-governance-at-scale/
abstract.dita
SATC common libraries/
keydefs-numbers,ditamap
keydefs-topics.ditamap
topics/
conrefs-text.dita
Rick