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

Re: An old examples' problem

From: Jeni Tennison <jeni@jenitennison.com>
Date: Mon, 14 Apr 2008 12:52:37 +0100
Cc: <public-xml-processing-model-comments@w3.org>
Message-Id: <68C6C4A4-D3EB-43E7-AD46-07C732C0A36C@jenitennison.com>
To: Vasil Rangelov <boen.robot@gmail.com>

Vasil,

On 12 Apr 2008, at 15:29, Vasil Rangelov wrote:
> The examples for the escape-markup
> (http://www.w3.org/XML/XProc/docs/langspec.html#c.escape-markup) and
> unescape-markup
> (http://www.w3.org/XML/XProc/docs/langspec.html#c.unescape-markup) are
> flawed. The escaped example in both cases is:
> ===
> <description>
> &lt;p>This is a chunk.&lt;/p>
> &lt;p>This is a another chunk.&lt;/p>
> </description>
> ===
> But this can't be right. I mean, what about the &gt;? The whole  
> example
> should be:
> ===
> <description>
> &lt;p&gt;This is a chunk.&lt;/p&gt;
> &lt;p&gt;This is a another chunk.&lt;/p&gt;
> </description>
> ===


The only place where a greater-than sign needs to be escaped is in the  
sequence ]]> in content. See

http://www.w3.org/TR/xml/#syntax

I think the examples are fine.

Jeni
-- 
Jeni Tennison
http://www.jenitennison.com
Received on Monday, 14 April 2008 11:53:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 14 April 2008 11:53:16 GMT