It is a dynamic error (err:XC0023) if the pattern matches anything other than element, attribute or processing instruction nodes.
I think we should add:
It is a dynamic error (err:XC0023) if the pattern matches anything other than element, attribute or processing instruction nodes, or if it matches more than one attribute on a single element .
I think this is an erratum. It's logically an error condition, it's just a question of what error should be raised. We could invent a new error code, but it seems so similar to the other errors that I don't think it's necessary.
Currently, the description of
p:rename
says:I think we should add:
This is to cover the following error case:
where the input is:
I think this is an erratum. It's logically an error condition, it's just a question of what error should be raised. We could invent a new error code, but it seems so similar to the other errors that I don't think it's necessary.