What are the nodes that the replace step acts on?

The short description of the replace step reads
http://www.w3.org/TR/xproc/#c.replace
***
The p:replace step replaces matching elements in its primary input with 
the document element of the replacement port's document.
***

Note the "matching elements" part.

Then, below we see the description of the match option:
***
The value of the match option must be an XSLTMatchPattern. It is a 
dynamic error (err:XC0023) if that pattern matches anything other than 
element, text, processing-instruction, or comment nodes.
***

Note that it can match without an error also text, processing 
instructions and comments.

So, what are the nodes that the replace step acts on?

Best Regards,
George
-- 
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Received on Friday, 31 July 2009 09:14:06 UTC