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"
  <p:input port="source">
      <x:abc x:def="whatever" xmlns:x="http://www.foo.com"/>

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"

The specification is not very clear on this.

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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:46 UTC