catalogs with DITA OT default transforms

Having trouble installing Oxygen? Got a bug to report? Post it all here.
andrea
Posts: 3
Joined: Fri Jun 26, 2009 10:11 pm

catalogs with DITA OT default transforms

Post by andrea »

Hello,

I'm attempting to run the default XHTML transform on a ditamap using the DITA OT through oXygen. The transform fails to resolve the public identifier in the map's doctype.

I can open (and validate) that same map in the oXygen dita maps manager.

The DTD against which I'm validating is deployed as a toolkit plugin. The OT catalog ({$frameworks}\dita\DITA-OT\catalog-dita.xml includes a next catalog element that references the plugin catalogs.

I'm running Windows XP, oXygen 10.2, and DITA OT 1.5.

Any suggestions?

Thanks,
Andrea
Radu
Posts: 9439
Joined: Fri Jul 09, 2004 5:18 pm

Re: catalogs with DITA OT default transforms

Post by Radu »

Hello Andrea,

From what I understand you replaced the DITA Open Toolkit 1.4.3 distribution from the Oxygen frameworks with the DITA OT 1.5 distribution.
Adding the extra catalog to the Oxygen catalogs will be enough to validate the maps/topics opened in Oxygen but of course the DITA OT ANT process also needs to know about the extra catalog.

Modifying the {$frameworks}\dita\DITA-OT\catalog-dita.xml catalog to point to the next catalog like:

Code: Select all


<nextCatalog catalog="path/to/new/catalog.xml"/>
should work both for transformation with the DITA Open Toolkit and for validation/content-completion from within Oxygen.
Just make sure the path to the next catalog is correct and then restart Oxygen and things should work out.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
andrea
Posts: 3
Joined: Fri Jun 26, 2009 10:11 pm

Re: catalogs with DITA OT default transforms

Post by andrea »

Hello, Radu,

Yes, my catalog-dita.xml has a nextCatalog reference:

<nextCatalog catalog="plugins/com.myProject.doctypes/doctypes/catalog.xml">

If I comment out this catalog reference, oXygen fails to validate associated dita topics and maps. If I uncomment it, validation succeeds, but the DITA-OT transforms fail.

BUILD FAILED
C:\oxygen\frameworks\dita\DITA-OT\build.xml:59: The following error occurred while executing this line:
C:\oxygen\frameworks\dita\DITA-OT\build_preprocess.xml:25: [DOTJ012F][FATAL] Failed to parse the input file 'gcpich_course.ditamap' due to below exception. Please correct the input base on the exception message.:C:\workspace\myProject\sample_data\dita_docs\course_gcpich\myProjectMap.dtd (The system cannot find the file specified)

I updated to oXygen 10.3 this morning and continue to experience these errors. I replaced the default DITA OT with v 1.5. (I tested first with the OT that ships with oXygen and got the same error.)

Thanks,
Andrea
Radu
Posts: 9439
Joined: Fri Jul 09, 2004 5:18 pm

Re: catalogs with DITA OT default transforms

Post by Radu »

Hi Andrea,

I tested using DITA specializations both for the map and topics and settings the next catalog as you did in the catalog-dita.xml and both validation in Oxygen and transformation worked.

My opinion is that in your catalog the DITA Map public/system ID's are not correctly connected to the map custom DTDs.

You said the DITA map was valid in Oxygen. Did you open it in the main editor area and then validated? If you did not you should open it in the DITA Maps Manager and then press the Open map in editor toolbar action to open it in the main editor area.

After each catalog change you should use the "Reset cache and validate" toolbar action to rebuild the catalogs.

If this still does not work it would be useful if you could send us a sample project together with your custom DTD's and catalog.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
andrea
Posts: 3
Joined: Fri Jun 26, 2009 10:11 pm

Re: catalogs with DITA OT default transforms

Post by andrea »

Hi Radu,

I have a sample project for you to review. How shall I deliver it to you?

Thanks,
Andrea
Radu
Posts: 9439
Joined: Fri Jul 09, 2004 5:18 pm

Re: catalogs with DITA OT default transforms

Post by Radu »

Hello Andrea,

You can find our support email address here.
http://www.oxygenxml.com/techSupport.html

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