Hello,
I'm using XML mind XML Editor 4.1 on Windows.
I tried to extend my own context menu, depending on the chosen element.
My code:
<command name="contextualMenuChooser">
<macro>
<sequence>
<sequence>
<choice>
<test
expression="$implicitElement[ancestor::Attribut]" />
</choice>
<command
name="contextualMenuAttribut" />
</sequence>
<sequence>
<choice>
<test
expression="$implicitElement[ancestor::Beschreibung and ancestor::Attribut]" />
</choice>
<command
name="contextualMenuAttributBeschreibung" />
</sequence>
</sequence>
</macro>
</command>
<command name="contextualMenuAttribut">
<menu label="contextualmenu">
<item label="Insert..." command="insert" parameter="into" />
</menu>
</command>
<command name="contextualMenuAttributBeschreibung">
<menu label="contextualmenu">
<insert />
<item label="Insert Before..." command="insert"
parameter="before[implicitElement]" />
<item label="Insert After..." command="insert"
parameter="after[implicitElement]" />
</menu>
</command>
That's not working. Is there a solution for my problem? How can I do what I
want?
Freundliche Gr?sse / Kind Regards
Marc H?mmerle
_________________________
Adcubum AG
Rorschacherstrasse 267
9016 St. Gallen
Telefon +41 71 282 88 39
Telefax +41 71 282 88 99
marc.haemmerle at adcubum.com
www.adcubum.com <http://www.adcubum.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20080929/1b9de30f/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Marc Haemmerle.vcf
Type: text/x-vcard
Size: 382 bytes
Desc: Marc Haemmerle.vcf
Url :
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20080929/1b9de30f/attachment.bin