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

Re: On the interpretation of match=

From: Norman Walsh <ndw@nwalsh.com>
Date: Sun, 05 Oct 2008 14:14:02 -0400
To: public-xml-processing-model-comments@w3.org
Message-ID: <m2abdiucyd.fsf@nwalsh.com>
"Florent Georges" <fgeorges@fgeorges.org> writes:

>   But I have a little question about your example:
>
>>  <p:rename match="//item" new-name="foo"/>
>
>   Do we agree this is equivalent to the following? (note the descendent axis) :
>
>     <p:rename match="item" new-name="foo"/>

Yes, I think so.

>> The matched node is a comment and rename cannot
>> target comments.
>
>   About this example (matching a comment node), would it be an error
> if the match expression matched both comment and element nodes?

Yep. The first time a comment node matches, that's an error.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | When a book and a head collide and
http://nwalsh.com/            | there is a hollow sound, is it always
                              | the book?-- Lichtenberg

Received on Sunday, 5 October 2008 18:15:04 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:28:25 UTC