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

unescape-markup and @namespace

From: Norman Walsh <ndw@nwalsh.com>
Date: Thu, 22 May 2008 12:04:41 -0400
To: public-xml-processing-model-wg@w3.org
Message-ID: <m2zlqi5nqe.fsf@nwalsh.com>
Consider:

<p:unescape-markup namespace="http://example.com/ns/">
  <p:input port="source">
    <p:inline>
      <doc>&lt;content&gt;&lt;?pi?&gt;was escaped&lt;/content&gt;</doc>
    </p:inline>
  </p:input>
</p:unescape-markup>

What does this produce?

<doc xmlns="http://example.com/ns/"><content><?pi?>was escaped</content></doc>

Effectively renaming the root element, or is the root element supposed
to get a prefix? If it's supposed to get a prefix, what if it was in
no-namespace?

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | A man can believe a considerable deal
http://nwalsh.com/            | of rubbish, and yet go about his daily
                              | work in a rational and cheerful
                              | manner.--Norman Douglas

Received on Thursday, 22 May 2008 16:05:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 22 May 2008 16:05:21 GMT