Usage of p:exec or pos:cwd output

I am trying to use XML Calabash for processing my XML documents.  I
would like to use the output of a p:exec step in another step.  For
instance, specify a step like

<p:exec name="exec" command="/bin/pwd" cwd="/" result-is-xml="false">
  <p:input port="source">
    <p:empty />
  </p:input>
</p:exec>

and then use its output in the place of *** below:

<p:load name="source">
  <p:with-option name="href"
    select="resolve-uri($source-base-name,***)" />
</p:load>

Write now I am using exf:cwd() for ***, but I would like to know if it
is possible to use p:exec for this.

Also, is it possible to use pos:cwd to fill in ***?

Thanks and regards,
Raghu.

--
N. Raghavendra <raghu@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/

Received on Monday, 15 October 2018 02:26:06 UTC