Email list hosting service & mailing list manager

Final comments, mostly editorial John Cowan (27 Nov 2013 23:59 UTC)
Re: Final comments, mostly editorial Per Bothner (28 Nov 2013 03:52 UTC)
Re: Final comments, mostly editorial John Cowan (28 Nov 2013 04:07 UTC)
Re: Final comments, mostly editorial John Cowan (28 Nov 2013 04:10 UTC)
Re: Final comments, mostly editorial Per Bothner (28 Nov 2013 04:46 UTC)
Re: Final comments, mostly editorial John Cowan (28 Nov 2013 04:51 UTC)
Re: Final comments, mostly editorial Per Bothner (07 Dec 2013 01:24 UTC)
Re: Final comments, mostly editorial John Cowan (07 Dec 2013 19:24 UTC)
Re: Final comments, mostly editorial Per Bothner (08 Dec 2013 08:37 UTC)
Re: Final comments, mostly editorial John Cowan (08 Dec 2013 17:13 UTC)
Re: Final comments, mostly editorial Per Bothner (08 Dec 2013 20:27 UTC)
Re: Final comments, mostly editorial John Cowan (08 Dec 2013 23:23 UTC)

Re: Final comments, mostly editorial John Cowan 08 Dec 2013 23:23 UTC

Per Bothner scripsit:

> I've changed my mind, and I disagree.  I looked at the specifications for
> "XML literals" in XQuery and ECMAScript for XML, and as far as I can tell,
> both allow ">" without even mentioning the "]]>" issue.

Okay, that convinces me.

>   The characters & and < are special and need to be escaped.
>
>   The character > does not have to be escaped, but it is good style
>   to always do so, as it makes it easier to visually distinguish it
>   from markup.  (The MicroXML proposal does not even allow unquoted >.)
>   If an XML-node value containing > in element or attribute content
>   is written, an implementation *should* write the escaped form &gt;.
>   The XML and HTML 4.x standards do not allow the literal text ]]> in
>   element content, for historical reasons of SGML-compatibility. For
>   this reason an implementation of this specification *may* warn if
>   literal ]]> is seen.

I'm okay with that, provided you add "and *must* write the escaped form
]]&gt; if the XML is written", since that is no longer the domain of XML
literals but of XML itself.

--
How they ever reached any conclusion at all     <xxxxxx@ccil.org>
is starkly unknowable to the human mind.        http://www.ccil.org/~cowan
        --"Backstage Lensman", Randall Garrett