ID as href target

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

ID as href target

Post by birstrack »

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?
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: ID as href target

Post by Radu »

Hi,

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:

https://www.oxygenxml.com/doc/versions/ ... 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:

https://www.oxygenxml.com/InstData/Edit ... IResolver-

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply