Re: An old examples' problem

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 UTC