Re: Keyref/conkey ref conversion strategy - keyref all the things? #conref


Chris Papademetrious
 

Hi everyone,

I created a perl script to automate @href-to-@keyref conversion for cross-references between topics:

https://github.com/chrispy-snps/DITA-convert-hrefs-to-keyrefs

Your map must already have @keys values defined for the topics; this script then automates the conversion of <xref> and <link> elements from @href to @keyref.

Note that Oxygen has a handy setting at

Tools > Preferences > DITA > Maps > Use the file name as the value of the "keys" attribute

to define @keys on new topics as you create them.

 - Chris

Join main@dita-users.groups.io to automatically receive all group messages.