Handling content outside the map directoryBy default, DITA-OT assumes content is located in or beneath the directory containing the DITA map file.
The generate.copy.outer parameter can be used to adjust how output is generated for content
that is located outside the map directory.generate.copy.outerHTML
files outside map directoryDITA maps
relative file locationsBackground
This is an issue in the following situations:
The DITA map is in a directory that is a peer to directories that contain referenced objects.
The DITA map is in a directory that is below the directories that contain the referenced objects.
Let’s assume that the directory structure for the DITA content looks like the following:
The DITA map is in the maps directory, the topics are in the topics
directory, and the images are in the images directory.
Exclude content outside the map directoryindex
entry fileentry file
broken links, reason for
Let’s assume that you run the HTML5 transformation. By default, DITA-OT uses the
generate.copy.outer parameter with a value of , which means that no
output is generated for content that is located outside the DITA map directory.
You receive only the following output:
index.html
commonltr.css
commonrtl.css
The index.html file contains the navigation structure, but all the links are broken, since
no HTML files were built for the topics.
How do you fix this? By adjusting the parameter setting to shift the output directory.
Shift the output directory to include all content
To preserve the links to referenced topics and images and make it easier to copy the output directory, set the
generate.copy.outer parameter to .
Now your output directory structure resembles the structure of the source directory:
The index.html file is in the maps directory, the HTML files for the
topics are in the topics directory, and the referenced images are in the
images directory.
If args.csspath is not set, the default CSS files (and any custom CSS files
specified via args.css) will be copied to the root level of the output folder. To copy CSS
files to an output subfolder named css, set args.csspath to
.
CSS
copy to specific location