When I do the following using dpml
I get the results wanted.
Now changing from
to
and prepending this piece with
where the result hereof is:
I get
What am I overlooking?
|
<instr>
<type>dbxmlQuery</type> <param>var:param</param> <operator> <dbxml> <container>licobecu.dbxml</container> <xquery> declare variable $param as node() := <nvp><collection>71022A00</collection></nvp>; <ids> {for $x in collection("licobecu.dbxml")/Artefact where $x/objectNumber/@collection = $param/collection return <id>{$x/@id}</id> } <note>{$param}</note> </ids> </xquery> </dbxml> </operator> <target>var:result</target> </instr> |
I get the results wanted.
Now changing from
|
declare variable $param as node() := <nvp><collection>71022A00</collection></nvp>;
|
to
|
declare variable $param as node() external;
|
and prepending this piece with
|
<instr>
<type>copy</type> <operand>this:param:param</operand> <target>var:param</target> </instr> |
where the result hereof is:
|
<nvp>
<collection>71022A00</collection> </nvp> |
I get
|
What am I overlooking?