W3C home > Mailing lists > Public > www-ql@w3.org > July to September 2003

Re: content of PIs and comments

From: C. M. Sperberg-McQueen <cmsmcq@acm.org>
Date: 15 Sep 2003 13:57:33 -0600
To: Robin Berjon <robin.berjon@expway.fr>
Cc: www-ql@w3.org
Message-Id: <1063655853.4470.276.camel@localhost>

On Mon, 2003-09-15 at 11:06, Robin Berjon wrote:
> Hi,
> 
> in the data model spec, there are two points -- respectively 4.6.1 third item of 
> the last list and 4.7.1 second item of the last list -- that I find surprising.
> 
> They say that a PI's data cannot contain "?>" and that a comment's content 
> cannot contain "--". That's true at the lexical (XML 1.x) level, but I believe 
> it is wrong at the Infoset level. The following document appears to me to be 
> well-formed, and indeed several parsers seem happy about it:
> 
>    <foo>
>      <?pi char?&gt;char?>
>      <!-- comment &#41;- foo -->
>    </foo>
> 
> I believe this generates a PI the content of which is "char?>char" and a comment 
> the content of which is " comment -- foo " 

Well, it would if general-entity references were recognized,
and the entities expanded, within processing instructions and
comments.  But they aren't.

Of course, what you say may be true of synthetic infosets.

(And by the way, shouldn't these comments on the spec be going to 
public-qt-comments@w3.org ?)

-C. M. Sperberg-McQueen
Received on Monday, 15 September 2003 15:59:06 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:17:16 UTC