Ditaval file must be in or below ditamap directory

amyers3
Posts: 16
Joined: Sat Feb 16, 2019 8:43 pm

Ditaval file must be in or below ditamap directory

Post by amyers3 » Fri May 03, 2019 1:37 am

Hi,

I am using webhelp responsive with feedback transformation on Editor 21.0.

My ditaval files are one directory above my ditamap. I am getting this error even though I have the copy outer param set to 3.

Reference to resource outside of main DITA map folder may produce potential publishing problems.

And, indeed it does. The transformation creates the directory that contains the ditaval_webhelp directory and puts all of the output files in there. This breaks most of the links from the TOC. Is there a way to address this issue without moving my ditaval_webhelp directory? I would rather keep my source files separate from my build files.

Thanks,

Adam

MAP:

Code: Select all

<?xml version="1.0"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<map id="my_map">
	<title>My Map</title>
	<topicmeta>
		<prodinfo>
			<prodname/>
			<vrmlist>
				<vrm version="1"/>
			</vrmlist>
		</prodinfo>
		<data type="subtitle">Map</data>
		<data type="watermark"/>
		<data type="keywords">My Map</data>
		<data type="subject">Map</data>
		<data type="partno">1</data>
	</topicmeta>
	<ditavalref href="../build/ditaval_webhelp/my_map.ditaval"/>
	<topicref format="dita" href="my_map/c_topic.xml" navtitle="About My Map"
		scope="local" type="concept"/>
...
Adam Myers
Technical Publications Manager
MATRIXX Software

Radu
Posts: 6916
Joined: Fri Jul 09, 2004 5:18 pm

Re: Ditaval file must be in or below ditamap directory

Post by Radu » Fri May 03, 2019 2:02 am

Hi Adam,

If you edit the Oxygen transformation scenario you are using for publishing in the Parameters list there is a parameter called "fix.external.refs" which you can set to "yes". But this will work only when publishing from Oxygen.
Otherwise you will need to have the root DITA Map above the ditaval file in the folders hierarchy:

https://www.oxygenxml.com/doc/versions/ ... -refs.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply