p:namespace-rename & attributes

Hi all,

I have a question about p:namespace-rename. More specifically, what
should be the behavior/output of the following code:

...
<p:namespace-rename from="http://www.foo.com" to="http://www.bar.com"
elements-only="true">
  <p:input port="source">
    <p:inline>
      <x:abc x:def="whatever" xmlns:x="http://www.foo.com"/>
    </p:inline>
  </p:input>
</p:namespace-rename>
...

Because elements-only is set to true, the attributes should remain in
their original namespace. But since both the element and the attribute
share the same prefix, what should happen? Should the step fail with an
error, or should it produce something like:

<x:abc y:def="whatever" xmlns:x="http://www.bar.com"
xmlns:y="http://www.foo.com"/>

The specification is not very clear on this.

Regards,
Vojtech

Received on Thursday, 22 May 2008 07:34:58 UTC