Re: On the interpretation of match=

"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