I have been trying to find a way around the fact that I cannot use Entities for replacement text. I've read the tutorial with the VAT example and pasting references and that works fine so I am almost there; it also seems a well structured way to do this. What I want to do now, is set up a macro command so that I can easily enter the reference while typing. What I want to do is to be able to select the text where the caret is and then convert it into the element id in the xpointer of an xi:include. The href location would be predefined in the macro.
So the macro would insert: <xi:include href="MyEntities.xml" xmlns:xi="http://www.w3.org/2001/XInclude" xpointer="element(SELECTED_TEXT_GOES_HERE)" /> The trouble is I don't know how, with the macro commands, to insert the <xi:include. As the insert command from the menu will not let me insert an xi:include (unless I'm missing something), I presume the insert macro command will not either. Can anyone help? ******************************************************************************** Steve Butler Planer plc, 110 Windmill Road, Sunbury-on-Thames, Middlesex, UK, TW16 7HD Tel: +44 (0) 1932 755070 Fax: +44 (0) 1932 755071 E-Mail: sbutler at planer.co.uk Home Page: http://www.planer.co.uk ********************************************************************************

