Dear M. Shafie,
Sorry to bother you with this type of question, but we find it difficult
(please, do not take this as a criticism) to find clear examples on how
to do it in the documentation...
What we want to do is pretty simple actually:
1. We add a command button in some elements; the command works on the
implicitElement (the element selected when the user clicks on the button)
2. In this command, we want to
a) retrieve all Ids of children elements, e.g. (Xpath) child::*/@id
b) use pick to display this list to the use so that he can choose one
c) Uses this to modify one give attribute of the implicit element,
e.g.:
<cfg:command name="putAttribute"
parameter="[implicitElement] defaultValue %_" />
Seems that the we know all the spare parts, but we miss the glue...
Could you point us to some hints, especially on point a) (how to collect
data using Xpath)
Many thanks again,
Philippe.
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support