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

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

From: <Toman_Vojtech@emc.com>
Date: Fri, 31 Jul 2009 05:51:24 -0400
Message-ID: <6E216CCE0679B5489A61125D0EFEC787105EB259@CORPUSMX10A.corp.emc.com>
To: <xproc-dev@w3.org>
> 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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 31 July 2009 09:52:26 GMT