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

p:unescape-markup (p:parse)

From: Norman Walsh <ndw@nwalsh.com>
Date: Thu, 26 Apr 2007 09:55:30 -0400
To: public-xml-processing-model-wg@w3.org
Message-ID: <87odlb1bql.fsf@nwalsh.com>
Given

  For example, with the 'namespace' option set to the XHTML namespace,
  the following input:

  <description>
  &lt;p>This is a chunk.&lt;/p>
  &lt;p>This is a another chunk.&lt;/p>
  </description>

Why does unescaping markup produce this:

  <description>
  <p xmlns="http://www.w3.org/1999/xhtml">This is a chunk.</p>
  <p xmlns="http://www.w3.org/1999/xhtml">This is a another chunk.</p>
  </description>

and not this:

  <description xmlns="http://www.w3.org/1999/xhtml">
  <p>This is a chunk.</p>
  <p>This is a another chunk.</p>
  </description>

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Any problem in computer science can be
http://nwalsh.com/            | solved with another layer of
                              | indirection.--David Wheeler

Received on Thursday, 26 April 2007 13:55:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:21:50 GMT