ID as href target

Questions about XML that are not covered by the other forums should go here.
Posts: 14
Joined: Wed Jun 29, 2011 12:28 pm

ID as href target

Post by birstrack » Thu Aug 13, 2020 1:22 pm

hi, when using a ditamap Oxygen expects a file-name in the @href attribuut. Is it possible to use an ID instead and configure Oxygen the way that it can use an ID instead and find the target?

Posts: 7434
Joined: Fri Jul 09, 2004 5:18 pm

Re: ID as href target

Post by Radu » Thu Aug 13, 2020 4:48 pm


Oxygen passes any topic reference @href attribute value through its XML catalog support, looking an URI mappings to see if it can redirect the reference to some place else: ... alogs.html

So if you have an XML catalog file added to Oxygen's XML catalogs list, it can redirect file references like this:

Code: Select all

<uriSuffix uriSuffix="topic.dita" uri="../../someOtherFolder/topic.dita"/>
If you want something more flexible, we have support to add an XML catalog resolver via our Java API from an Oxygen plugin: ... IResolver-

Radu Coravu
<oXygen/> XML Editor

Post Reply