<div dir="ltr"><div><div><div>Hi group<br><br></div>Suppose you have a bunch of topics in a DITA map or in a folder in which you want to replace specific conrefs with an element with text. For example:<br><br><keyword conref="!conref_library.dita#topic_2m1_vgk_3h/keyword_kqg_drd_f3"/><br>

<br>

needs to be replaced with:<br>
<br>

<keyword>XYZ</keyword><br><br></div>and <br><br><keyword conref="!conref_library.dita#topic_2m1_vgk_3h/keyword_drf_tvd_f7"/><br>
<br>

needs to be replaced with:<br>
<br>

<keyword>ABC</keyword><br><br></div>I guess this can be automated with a Framescript or Extendscript which does the following:<br><div><div><div><div><br>1. Collect all the conrefs in a 
DITA map or a folder.<br>2. Present the conrefs in some kind of list, for 
example a column in an Excel spreadsheet. <br>3. In the second column, the user
 could then enter the text and elements which need to replace the conref, for example:<br><br></div><div>cell A1 (find): <keyword conref="!conref_library.dita#topic_2m1_vgk_3h/keyword_kqg_drd_f3"/><br></div>
<div>cell B1 (replace with): <keyword>XYZ</keyword></div><div>cell A2: <keyword conref="!conref_library.dita#topic_2m1_vgk_3h/keyword_drf_tvd_f7"/><br></div><div>cell B2: <keyword>ABC</keyword></div>
<div><br>4. Apply this search/replace list to all topics in a given DITA map or folder.<br><br></div><div>Any takers?<br><br></div><div>Thanks<br clear="all"></div><div><div><br>-- <br>Yves Barbion<br><a href="http://www.scripto.nu">www.scripto.nu</a>
</div></div></div></div></div></div>