Steve Butler wrote: > 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.
In XXE, <xi:include> elements only exist at load/save time. Your macro-command must be based on the "include" command. See http://www.xmlmind.com/xmleditor/_distrib/docs/commands/ch06s23.html

