Bonjour Hussein,
Thank you very much, here is my sequence who does what I want, but now I want
to bind this to an event when the user add a element <A>.
<sequence>
<command name="selectFile" parameter="openFileURL %d"/>
<set expression="%_" variable="NomFichier"
plainString="true"/>
<get expression="$NomFichier"/>
<set variable="Liste"
expression="join(document($NomFichier)//@name,' ')"/>
<get expression="$Liste"/>
<command name="pick" parameter="'Choisir AccrocheLien'
false %_"></command>
</sequence>
--
Cordialement,
Marc Courriel : Marc.Liste at free.fr
-----------------------------------------
Le mercredi 24 janvier 2007 ? 13:06:37, vous ?criviez :
HS> Marc wrote:
>> I try it, but the xpathSearch command select the first node, what I want is
>> the list of the string value in the %_ to use it in the pick command after.
HS> Please use
HS> <get expression="document(XXX)/YYY" />
HS> and not command "xpathSearch".
HS> Here's an example of such macro:
HS> ---
HS> <command name="ditamap.editTopic">
HS> <macro>
HS> <sequence>
HS> <choice>
HS> <get context="$selectedElement/@conref"
HS> expression="resolve-uri(.)"/>
HS> <get context="$selectedElement/@href"
HS> expression="resolve-uri(.)" />
HS> <get context="$selectedElement/@mapref"
HS> expression="resolve-uri(.)"/>
HS> </choice>
HS> <choice>
HS> <command name="XXE.edit" parameter="%_" />
HS> <command name="XXE.new" parameter="- - '%_'" />
HS> </choice>
HS> </sequence>
HS> </macro>
HS> </command>
HS> ---
HS> Just an example: it will *not* solve your specific problem.
HS> More info in
HS> http://www.xmlmind.com/xmleditor/_distrib/doc/commands/xpath_get.html