Relative path in <nextcatalog>
See original GitHub issueExpected Behavior
I would like to reference catalog of a custom plugin (first) in another inherit custom plugin (second) using <nextcatalog>
in catalog.xml with a relative path :
<nextCatalog catalog="../../first.pdf/cfg/catalog.xml" />
Actual Behavior
If I use a relative path in nextcatalog (<nextCatalog catalog="../../first.pdf/cfg/catalog.xml" />
) I have the following error :
Apache resolver library found, xml-commons resolver will be used [xslt] Failed to process C:\Temp\NDE\temp\stage1.xml [antcall] Exiting C:\PROJETS\Landis-Gyr\dita-ot-2.5.4\build.xml. [antcall] Exiting C:\PROJETS\Landis-Gyr\dita-ot-2.5.4\build.xml. Error: The following error occurred while executing this line: C:\dita-ot-2.5.4\plugins\org.dita.pdf2\build.xml:276: java.lang.reflect.InvocationTargetException
If I use an explicit path in next catalog (<nextCatalog catalog="c:/dita-ot-2.5.4/plugins/first.pdf/cfg/catalog.xml" />
) it works.
Possible Solution
Steps to Reproduce
- Create a first plugin
- Create a second plugin which reference first plugin catalog through a relative path in
nextcalalog
.
Copy of the error message, log file or stack trace
Apache resolver library found, xml-commons resolver will be used [xslt] Failed to process C:\Temp\NDE\temp\stage1.xml [antcall] Exiting C:\PROJETS\Landis-Gyr\dita-ot-2.5.4\build.xml. [antcall] Exiting C:\PROJETS\Landis-Gyr\dita-ot-2.5.4\build.xml. Error: The following error occurred while executing this line: C:\dita-ot-2.5.4\plugins\org.dita.pdf2\build.xml:276: java.lang.reflect.InvocationTargetException
Environment
- DITA-OT version: 2.5.4
- Operating system and version: Windows
- How did you run DITA-OT?
dita
command - Transformation type: custom PDF2
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (4 by maintainers)
Top GitHub Comments
Using the plugin URI scheme will not work in catalogs, because the XML Catalog Resolver library we use doesn’t support custom URI resolvers.
Hi Raymond,
that solved my problem 😃
Thank you for the quick help.
Best regards, Sven