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

p:namespace-rename & attributes

From: <Toman_Vojtech@emc.com>
Date: Thu, 22 May 2008 03:34:08 -0400
Message-ID: <6E216CCE0679B5489A61125D0EFEC7870B1EE2B5@CORPUSMX10A.corp.emc.com>
To: <public-xml-processing-model-wg@w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 22 May 2008 07:35:00 GMT