Catalog resolver does not work unless oxygen-patched-resolver.jar is included
Posted: Thu Nov 19, 2020 12:26 am
I have create a new plugin in which I need to read dita maps and topics from xslt using fn:doc(). Everything works fine if I run the transformation from oXygen using the DITA-OT 2.3 and a custom transformation scenario.
The problem
If I run the transformation from command line, I get the following error:
Fatal error during transformation using {stylesheet_path} Failed to load document {ditamap_path}
My Findings
- If I remove the doctype declaration from the dita map that I intent to process, the transformation is successful
- If I include the oxygen-patched-resolver.jar in the command line with the -lib option, the transformation is successful
Important information:
My plugin is a customization based on the DITA-OT 2.3 and it uses the xmlcatalog (dita.catalog) defined in the org.dita.base plugin
My questions:
- Why doesn't my transformation work if I have the xmlcatalog included?
- Can I freely use the oxygen-patched-resolver.jar to package it with my custom DITA-OT?
- What is the bug or issue that the oxygen-patched-resolver.jar fixed that makes my transformation successful?
- Is there an alternative to read dita files other than fn:doc()
Any help would be appreciated
Thanks
The problem
If I run the transformation from command line, I get the following error:
Fatal error during transformation using {stylesheet_path} Failed to load document {ditamap_path}
My Findings
- If I remove the doctype declaration from the dita map that I intent to process, the transformation is successful
- If I include the oxygen-patched-resolver.jar in the command line with the -lib option, the transformation is successful
Important information:
My plugin is a customization based on the DITA-OT 2.3 and it uses the xmlcatalog (dita.catalog) defined in the org.dita.base plugin
My questions:
- Why doesn't my transformation work if I have the xmlcatalog included?
- Can I freely use the oxygen-patched-resolver.jar to package it with my custom DITA-OT?
- What is the bug or issue that the oxygen-patched-resolver.jar fixed that makes my transformation successful?
- Is there an alternative to read dita files other than fn:doc()
Any help would be appreciated

Thanks