W3C home > Mailing lists > Public > public-xml-processing-model-comments@w3.org > October 2008

Re: On the interpretation of match=

From: Florent Georges <fgeorges@fgeorges.org>
Date: Sun, 5 Oct 2008 20:12:52 +0200
Message-ID: <ebaca5bf0810051112t1b0563f0se67dba7e4fd35907@mail.gmail.com>
To: mozer <xmlizer@gmail.com>
Cc: "Norman Walsh" <ndw@nwalsh.com>, public-xml-processing-model-comments@w3.org

2008/10/5 mozer wrote:

>>  About this example (matching a comment node), would it be an error
>> if the match expression matched both comment and element nodes?

> No I would be an error ONLY because it is matching a comment

  I am not sure to understand.  Let's say we have the follwing document:

       <!-- comment -->

  Will this step generate an error because the match pattern will
select the comment and text nodes, or will this only result in
renaming the second element? (ok, the example is pointless, but it
shows the issue):

    <p:rename match="elem/following-sibling::node()" new-name="foo"/>


Florent Georges
Received on Sunday, 5 October 2008 18:13:28 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:41:08 UTC