WebHelp Responsive transform causes java.io.FileNotFoundException

Post here questions and problems related to editing and publishing DITA content.
rtimkovi
Posts: 9
Joined: Wed Dec 26, 2018 8:04 am

WebHelp Responsive transform causes java.io.FileNotFoundException

Post by rtimkovi »

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:

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

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>
keydefs-numbers.ditamap:

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>
keydefs-topics.ditamap:

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>
conrefs-text.dita:

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>
gov.ditamap:

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>
abstract.dita:

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>
Directory tree:

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

Rick
alin
Site Admin
Posts: 268
Joined: Thu Dec 24, 2009 11:21 am

Re: WebHelp Responsive transform causes java.io.FileNotFoundException

Post by alin »

Hello,

Thank you for reporting this issue. I managed to reproduce the problem and I have logged it in our issue management system to be analyzed (ticket ID: WH-2115).

Regards,
Alin
Alin Balasa
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
annyjul
Posts: 11
Joined: Fri Mar 02, 2018 12:20 pm

Re: WebHelp Responsive transform causes java.io.FileNotFoundException

Post by annyjul »

I have the same issue and the same error. I removed "processing-role="resource-only"" for terms topics to fix it, but proper solution would be welcome.
ionela
Posts: 402
Joined: Mon Dec 05, 2011 6:08 pm

Re: WebHelp Responsive transform causes java.io.FileNotFoundException

Post by ionela »

Hi,

I have added your comments and your vote for this issue. We'll update the thread when the bugfix becomes available.

Regards,
Ionela
Ionela Istodor
oXygen XML Editor and Author Support
Post Reply