Home Forums DITA and XMetaL Discussion Modify xref target on save? Reply To: Modify xref target on save?

dcramer

Reply to: Modify xref target on save?

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.

David

Reply

Products
Downloads
Support