W3C home > Mailing lists > Public > xproc-dev@w3.org > July 2009

What are the nodes that the replace step acts on?

From: George Cristian Bina <george@oxygenxml.com>
Date: Fri, 31 Jul 2009 12:13:08 +0300
Message-ID: <4A72B5A4.40706@oxygenxml.com>
To: XProc Dev <xproc-dev@w3.org>
The short description of the replace step reads
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 Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
Received on Friday, 31 July 2009 09:14:06 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:05 UTC