thye wrote:
> Because the IDs mostly not nice to read
> i would like to use a makro.
> At a first step i write:
> 
> <cfg:command name="xrg">
> <cfg:macro>
> <cfg:sequence>
> <cfg:command  name="selectNode" parameter="ancestorOrSelf[implicitElement]
>                  {http://www.thye.org/2003/xsd/PMV01} Adress"/>
> <cfg:command name="insert" parameter="after[implicitElement]                  
>    {http://www.w3.org/2001/XInclude}include"/>
> <cfg:command name="addAttribute" parameter="href              
> '../../../Databases/Adressen1.xml#S_Lebenhilfe1"/>
> 
> </cfg:sequence>
> </cfg:macro>
> </cfg:command>
> 
> 
> but that don't work.
> 
> How can I get the same result like the Menu Document Reference
> in XXE with an explicit ref?

Xincludes elements only exists when you load and save files with XXE. 
Therefore you cannot treat them like ordinary elements.

Instead, you need to use a command which inserts a ``document 
reference'' in your macro.

Unfortunately, all actions (except "Edit Referenced Document" which is 
available as command XXE.edit) contained in the "Document Reference" 
submenu of the "Edit" menu are *not yet* available as commands.

Your request is recorded in the wish list and will probably be 
implemented in the near future.


Reply via email to