Home › Forums › DITA and XMetaL Discussion › Modify xref target on save? › Reply To: Modify xref target on save?
dcramer December 23, 2008 at 4:33 pm
Reply to: Modify xref target on save?December 23, 2008 at 4:33 pm
On_Before_Set_Attribute_From_AI is an event macro that fires when you set an attribute value from the attribute inspector, so you could add some code to On_Before_Set_Attribute_From_AI so that if the element is an xref and the attribute is href and the substring before # is the same as the document name, it sets the attribute value to the #my_element_id part.