Page 1 of 1
ID as href target
Posted: Thu Aug 13, 2020 1:22 pm
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?
Re: ID as href target
Posted: Thu Aug 13, 2020 4:48 pm
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