W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > January 2007

A generalisation of delete and unwrap

From: Richard Tobin <richard@inf.ed.ac.uk>
Date: Thu, 11 Jan 2007 23:05:26 +0000 (GMT)
To: public-xml-processing-model-wg <public-xml-processing-model-wg@w3.org>
Message-Id: <20070111230526.D9ED11943EF@macpro.inf.ed.ac.uk>

Delete and unwrap could be subsumed by a more general "replace"
component, which uses an XPath to specify the replacement.  The XPath
would be evaluated relative to the selected node.  So replacing //foo
by nothing deletes foo elements; replacing //foo by node() unwraps the
children of foo elements.

(There isn't a trivial XPath expression for "nothing", though many
can be constructed.  But an empty XPath would be an obvious choice.)

-- Richard
Received on Thursday, 11 January 2007 23:03:11 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:41 UTC