Page 1 of 1
Validation scenario for DITA customization?
Posted: Tue Apr 04, 2023 1:05 pm
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
Re: Validation scenario for DITA customization?
Posted: Tue Apr 04, 2023 1:41 pm
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
Re: Validation scenario for DITA customization?
Posted: Tue Apr 04, 2023 1:43 pm
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-
Re: Validation scenario for DITA customization?
Posted: Tue Apr 04, 2023 3:16 pm
by Frank Ralf
Hi Radu,
Many thanks for the quick reply and the pointers.
Best regards,
Frank
Re: Validation scenario for DITA customization?
Posted: Tue Apr 11, 2023 10:55 am
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
Re: Validation scenario for DITA customization?
Posted: Tue Apr 11, 2023 10:59 am
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