question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Relative path in <nextcatalog>

See original GitHub issue

Expected 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

  1. Create a first plugin
  2. 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:closed
  • Created 5 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jelovirtcommented, Jun 19, 2018

Using the plugin URI scheme will not work in catalogs, because the XML Catalog Resolver library we use doesn’t support custom URI resolvers.

0reactions
skullecommented, Jan 20, 2022

Hi Raymond,

that solved my problem 😃

Thank you for the quick help.

Best regards, Sven

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using XJC with XMLCatalog using relative paths
I use XJC and now I want to use XMLCataloges which refers to other cataloges. The problem is that it should be able...
Read more >
Catalog Files - Altova MapForce 2022 Basic Edition
Catalogs are commonly used to redirect a public DTD or schema reference to a local URI (typically, a local file path). To achieve...
Read more >
Catalog using relative path on external SSD? - Capture One
Is it somehow possible to use relative paths? (EG i have one folder on the external drive, containing the catalog and the picture...
Read more >
Relative Paths - dtSearch Support
A relative path is a way to specify the location of a directory relative to another directory. For example, suppose your documents are...
Read more >
Paths explained: Absolute, relative, UNC, and URL—Help
Why use relative versus absolute paths? UNC paths; URLs; ArcSDE connection file path. You deal with paths every day to browse to your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found