Page 1 of 1

XHTML: ${dita.plugin.org.dita.xhtml.dir} not resolved with c

Posted: Tue Jan 06, 2015 7:23 pm
by Frank Ralf
Hi,

I'm trying to make the DITA XHTML transformation work with our customized framework. I changed the dita.dir parameter of the transformation to point to the DITA-OT of our custom framework. Unfortunately the transformation fails with the following error message:

Code: Select all


BUILD FAILED
[...]\DITA-OT\build.xml:133: The following error occurred while executing this line:
[...]\DITA-OT\plugins\org.dita.xhtml\build_dita2xhtml.xml:72:
[...]\DITA\abc_spec\topics\${dita.plugin.org.dita.xhtml.dir}\resource does not exist.
Looks like the OT cannot resolve the ${dita.plugin.org.dita.xhtml.dir} variable correctly. Is this a configuration issue or a bug?

Kind regards,
Frank

Re: XHTML: ${dita.plugin.org.dita.xhtml.dir} not resolved wi

Posted: Wed Jan 07, 2015 10:03 am
by Radu
Hi Frank,

I'm not sure what exactly you are doing, maybe copying plugins from a newer DITA OT to an older DITA OT. I'll tell you how this usually works in the DITA OT.
Usually the main DITA OT build file DITA-OT/build.xml contains at some point property declarations which map property names to locations where each DITA OT plugin directory is located.
For example if I open the main build.xml from the DITA OT 1.8 which comes bundled with Oxygen 16.1 I can find in it at some point:

Code: Select all

<property name='dita.plugin.org.dita.xhtml.dir' location='${dita.dir}\plugins/org.dita.xhtml'/>
That property is then later used in the build_dita2xhtml.xml.

Probably that property declaration is missing from your DITA-OT/build.xml. Usually the property declaration should be added automatically by running the DITA OT Integrator if the plugin DITA-OT\plugins\org.dita.xhtml is present.

Regards,
Radu

Re: XHTML: ${dita.plugin.org.dita.xhtml.dir} not resolved wi

Posted: Wed Jan 07, 2015 12:57 pm
by Frank Ralf
Hi Radu,

Thanks for your quick response. I will have a closer look but you are probably right because we did some manual tampering with the build.xml file ...

Kind regards,
Frank

Re: XHTML: ${dita.plugin.org.dita.xhtml.dir} not resolved wi

Posted: Wed Jan 07, 2015 6:35 pm
by Frank Ralf
You were right, Radu. The following line was indeed missing from our build.xml file.

Code: Select all

<property name='dita.plugin.org.dita.xhtml.dir' location='${dita.dir}\plugins/org.dita.xhtml'/>
I put it in again and everything works fine.

Many thanks again!
Frank