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

p:unescape-markup - changing the namespace URI

From: <Toman_Vojtech@emc.com>
Date: Fri, 16 Jan 2009 06:13:33 -0500
Message-ID: <6E216CCE0679B5489A61125D0EFEC7870E2F0CEC@CORPUSMX10A.corp.emc.com>
To: <public-xml-processing-model-comments@w3.org>

Hi all,

I have a question about p:unescape-markup. Suppose I do this:

<p:unescape-markup namespace="http://www.example.org/ns/">
  <p:input port="source">
    <p:inline><wrapper>&lt;doc
xmlns="http://foo.com"/></wrapper></p:inline>
  </p:input>
</p:unescape-markup>

What is the result?

<wrapper><doc xmlns="http://foo.com"/></wrapper>

or:

<wrapper><doc xmlns="http://www.example.org/ns/"/></wrapper>


In other words, does the "namespace" option change the namespace URIs of
the elements in the wrapper, or is it only applied for elements that are
in no namespace?

The spec says that: "The namespace option specifies the default
namespace. If it is provided, it will be declared as the default
namespace on the document element." So this seems to imply that the
namespace is always updated.

Do I understand this right?

Regards,
Vojtech
Received on Friday, 16 January 2009 11:14:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 16 January 2009 11:14:31 GMT