RE: What are the nodes that the replace step acts on?

> In that case the description following the match option 
> description also 
> needs to be updated?
> 
> ***
> Every element in the primary input matching the specified pattern is 
> replaced in the output is replaced by the document element of the 
> replacement document.
> ***

I think so.

> 
> Is the replace step able to change a PI with another one?

No, it always replaces the matching nodes by an XML document (the
"replacement" input port).

One way of replacing a PI with another one would be to insert the new
one using p:insert and then removing the old one using p:delete. If you
want just to rename a PI, you can use p:rename.

Regards,
Vojtech

Received on Friday, 31 July 2009 09:52:26 UTC