W3C home > Mailing lists > Public > w3c-sgml-wg@w3.org > January 1997

Re: Production 21 (and others)

From: <lee@sq.com>
Date: Wed, 29 Jan 97 22:37:36 EST
Message-Id: <9701300337.AA08663@sqrex.sq.com>
To: crm@ebt.com, w3c-sgml-wg@www10.w3.org
Dhris Maden wrote:
> The regexp should bar *-- within a comment (and -- unless the TC
> passes in time).  Even though, from XML's point of view, only *--> can
> end a comment, these are still SGML comments, and *-- as comc would
> still end the comment within the comment declaration.

No.  Using *-- as COMC would require SGML comments to look like
<!*-- stuff *-->

Existing SGML systems will use -- to delimit comments, and it is pure
happenstance (to them) that all XML comments start and end with an asterisk.

In fact, banning -- within comments until the TC passes is sufficient,
since *-- contains --.  After the TC passes (I hope!), it is only necessary
to state that comments don't nest, so tht --* cannot appear within a comment,
since an SGML system can then handle the new syntax.

Received on Wednesday, 29 January 1997 22:38:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:25:07 UTC