Hello Hussein, thanks for the reply and the idea for another way of
implementation. I'll attach my solution, maybe someone else finds it useful.
Very good support, thanks a lot!
Declare this namespace:
xmlns:view="http://www.xmlmind.com/xmleditor/namespace/scope/view"
We need two commands, one for getting the id and one to set the callout.
<command name="getID">
<macro>
<sequence>
<command name="selectNode" parameter="self co" />
<match context="$selected" pattern="co" />
<set variable="view:idvalue" context="$selected"
expression="@id" />
</sequence>
</macro>
</command>
<command name="setArearefs">
<macro>
<sequence>
<get expression="$view:idvalue" plainString="true" />
<command name="putAttribute" parameter="[implicitElement]
arearefs %_" />
</sequence>
</macro>
</command>
Add the following to the CSS:
co[id]:after {
content: command-button(icon, icon(right-target),
command, "getID"
);
}
callout:after {
content: command-button(icon, icon(right-target),
command, "setArearefs"
);
}
Clicking the arrow symbol next to a co/callout copies/pastes an id/arearefs.
bye,
Patrick
--
GMX ProMail mit bestem Virenschutz http://www.gmx.net/de/go/mail
+++ Empfehlung der Redaktion +++ Internet Professionell 10/04 +++