11 - whether "--" and % are allowed in comments, is > allowed in a PI

Some very minor points...

XML says, "For compatibility, the string " -- " (double-hyphen) must not
occur within comments."

11a. Should we allow <!-- -- --> as a µXML comment?

The XML spec does not say that compatibility constraints are not
binding, so I believe the above not to be well-formed XML, and the
answer should be that it is to be forbidden.

11b. Should we allow % inside a µXML comment? The spec says,
"Parameter entity references must not be recognized within comments"
which I interpret to be an instruction to the parser not to treat %
specially inside comments. In the context of XML (not SGML) it's
actually a pretty bizarre admonition, and for µXML % will not be
special, and hence is allowed.

Is it worth documenting this? I'm not sure, probably not.

11c. Can you include > in a processing-instruction?
XML allows it. Since they are allowed in comments, I see no reason not
to.

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml

Received on Tuesday, 4 September 2012 20:49:43 UTC