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.

Please use
<get expression="document(XXX)/YYY" />
and not command "xpathSearch".

Here's an example of such macro:
---
  <command name="ditamap.editTopic">
    <macro>
      <sequence>
        <choice>
          <get context="$selectedElement/@conref"
               expression="resolve-uri(.)"/>
          <get context="$selectedElement/@href"
               expression="resolve-uri(.)" />
          <get context="$selectedElement/@mapref"
               expression="resolve-uri(.)"/>
        </choice>
        <choice>
          <command name="XXE.edit" parameter="%_" />
          <command name="XXE.new" parameter="- - '%_'" />
        </choice>
      </sequence>
    </macro>
  </command>
---
Just an example: it will *not* solve your specific problem.

More info in
http://www.xmlmind.com/xmleditor/_distrib/doc/commands/xpath_get.html

Reply via email to