W3C home > Mailing lists > Public > xproc-dev@w3.org > June 2009

p:escape-markup ... & changed to ∓ ... why isn't " changed to "?

From: Costello, Roger L. <costello@mitre.org>
Date: Fri, 19 Jun 2009 14:35:14 -0400
To: "xproc-dev@w3.org" <xproc-dev@w3.org>
Message-ID: <9E51F88D5247B648908850C35A3BBB500400458BDF@IMCMBX3.MITRE.ORG>

Hi Folks,

Applying p:escape-markup to this:

   Harper &amp; Row

I get this:

   Harper &amp;amp; Row

Thus, & is changed to &amp;

Now, consider this:

   <Book id="McCartney">

it is changed to this:

   &lt;Book id="McCartney"&gt;

Why aren't the quotes escaped? Why don't I get this:

   &lt;Book id=&quot;McCartney&quot;&gt;

/Roger
Received on Friday, 19 June 2009 18:35:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 19 June 2009 18:35:49 GMT