Publishing Engine: Problem with relative paths in DITA-OT project file
Posted: Thu Jan 14, 2021 5:04 am
I don’t know if this is a DITA-OT problem or something possibly on your side. I’m using the Publishing Engine, and having trouble getting my WebHelp responsive build to recognize partial relative paths in some of the parameters I’m using in a project file. Here’s a portion of the project file that shows the problem area:
<deliverable name="CNX7 CA" id="CNX7CA">
<context name="CNX7" id="CNX7CAContext">
<input href="./cnx7_enduser_translations_sources/ca/end_user_ddita.ditamap" />
<profile>
<ditaval href="./common/merged.ditaval" />
</profile>
</context>
<output href="./ca/user" />
<publication transtype="webhelp-responsive">
<!--The 'build-resources' folder is in the same folder (/local1/cnxbuild/Documentation) as this project file.-->
<!--The following relative path works. -->
<param name="webhelp.publishing.template" value="./build-resources/lang-switcher/HCLDefault-Embedded.opt" />
<!--The following relative path does not work. -->
<param name="webhelp.fragment.footer" value="./build-resources/lang-switcher/header.xml_all-locales/ca/footer.xml" />
<!--The following relative path works. -->
<param name="webhelp.fragment.before.body" value="/local1/cnxbuild/Documentation/build-resources/lang-switcher/header.xml_all-locales/ca/header.xml" />
</publication>
</deliverable>
It isn't possible for me to use a relative path that starts at the root, because this file is part of some automation that doesn't require a specific build folder in which to run.
I've tried lots of different permutations of short relative paths, without success. Do you have any idea what might be going on here?
Thanks.
<deliverable name="CNX7 CA" id="CNX7CA">
<context name="CNX7" id="CNX7CAContext">
<input href="./cnx7_enduser_translations_sources/ca/end_user_ddita.ditamap" />
<profile>
<ditaval href="./common/merged.ditaval" />
</profile>
</context>
<output href="./ca/user" />
<publication transtype="webhelp-responsive">
<!--The 'build-resources' folder is in the same folder (/local1/cnxbuild/Documentation) as this project file.-->
<!--The following relative path works. -->
<param name="webhelp.publishing.template" value="./build-resources/lang-switcher/HCLDefault-Embedded.opt" />
<!--The following relative path does not work. -->
<param name="webhelp.fragment.footer" value="./build-resources/lang-switcher/header.xml_all-locales/ca/footer.xml" />
<!--The following relative path works. -->
<param name="webhelp.fragment.before.body" value="/local1/cnxbuild/Documentation/build-resources/lang-switcher/header.xml_all-locales/ca/header.xml" />
</publication>
</deliverable>
It isn't possible for me to use a relative path that starts at the root, because this file is part of some automation that doesn't require a specific build folder in which to run.
I've tried lots of different permutations of short relative paths, without success. Do you have any idea what might be going on here?
Thanks.