Validation scenario for DITA customization?

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

Validation scenario for DITA customization?

Post by Frank Ralf »

Hi,

I want to create a validation scenario to validate DITA files against a customized DITA definition, implemented as a DITA-OT plugin, without having to switch DITA-OTs or frameworks. However, it looks as if I can only point a validation scenario to a single schema file but not an XML catalog file as would be required. Am I missing something? Or is there a workaround for that?

Kind regards,
Frank
Frank Ralf
parson AG
www.parson-europe.com
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Validation scenario for DITA customization?

Post by Radu »

Hi Frank,
A validation scenario points to a schema, that schema reference may be resolved by Oxygen through an XML catalog. XML catalogs map schema references to various resources on disk. An XML catalog is a mapping, it is not a schema.
The only two places where to add XML catalogs to Oxygen so that it knows about them are the Preferences->"XML Catalogs" page and inside framework customizations.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Validation scenario for DITA customization?

Post by Radu »

Oh, there is also a plugin extension point allowing a Java based plugin to contribute an entity resolver, basically the plugin's code gets called to resolve a certain DTD reference for example and it controls what schema reference to return instead, somehow like an XML catalog does but implemented in Java code instead.

https://www.oxygenxml.com/InstData/Edit ... yResolver-
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Frank Ralf
Posts: 460
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

Re: Validation scenario for DITA customization?

Post by Frank Ralf »

Hi Radu,

Many thanks for the quick reply and the pointers.

Best regards,
Frank
Frank Ralf
parson AG
www.parson-europe.com
Frank Ralf
Posts: 460
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

Re: Validation scenario for DITA customization?

Post by Frank Ralf »

Hi Radu,

I have created a DITA framework extension that as the only customization points to the additional catalog file. That way, I can easily switch between the two DITA flavors for validation purposes. Thanks again for your pointers.

Best regards,
Frank
Frank Ralf
parson AG
www.parson-europe.com
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Validation scenario for DITA customization?

Post by Radu »

Hi Frank,

Right, all XML catalogs are contributed to the global catalog resolver so the catalog contributed by the framework will influence all other frameworks as well.

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