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

Post here questions and problems related to editing and publishing DITA content.
Frank Ralf
Posts: 482
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

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

Post 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
Frank Ralf
parson AG
www.parson-europe.com
Radu
Posts: 9446
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Frank Ralf
Posts: 482
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

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

Post 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
Frank Ralf
parson AG
www.parson-europe.com
Frank Ralf
Posts: 482
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

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

Post 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
Frank Ralf
parson AG
www.parson-europe.com
Post Reply