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

Re: p:namespace-rename question

From: mozer <xmlizer@gmail.com>
Date: Thu, 6 Nov 2008 11:18:25 +0100
Message-ID: <21d9ade60811060218i28126670k9590fae9a2411fd0@mail.gmail.com>
To: Toman_Vojtech@emc.com
Cc: public-xml-processing-model-comments@w3.org

In that case you can do it by doing this in two steps (I know it's hairy but...)

<p:namespace-rename from="A" to="B"/>
<p:namespace-rename from="B" to="A" elements-only="true"/>

which will have side effects  if there is already elements in namespace B

or we can indeed change the attribute to

"apply-to" that could have "all" (default), "elements-only", "attributes-only"


On Thu, Nov 6, 2008 at 10:46 AM,  <Toman_Vojtech@emc.com> wrote:
> Just wondering: why does p:namespace-rename have the option
> 'elements-only', but nothing that would allow renaming attributes only?
> It could be useful, fo r instance, in cases when you want to keep the
> elements in no namespace and only move the attributes to some namespace.
> Has anybody considered this before?
> Regards,
> Vojtech
Received on Thursday, 6 November 2008 11:54:55 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:41:08 UTC