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

Re: SD1 - Short End Tags [fmt]

From: Michael Sperberg-McQueen <U35395@UICVM.UIC.EDU>
Date: Wed, 21 May 97 18:07:36 CDT
Message-Id: <199705212310.TAA19040@www10.w3.org>
To: W3C SGML Working Group <w3c-sgml-wg@w3.org>
On Wed, 21 May 1997 12:17:34 -0400 (EDT) Matthew Fuchs said:
>I interpret this as trying to enforce a particular top-down parsing
>model.  At the risk of appearing pedantic, the following revision
>appears to be legal:>
><?XML version="1.0" RMD='INTERNAL'?>
><!doctype bogus [
><!entity a "firstname">
><!entity b "/firstname">
><!entity c "lastname">
><!entity d "/lastname">
>  <&a;>foo<&b;>
>  <&c;>bar<&d;>

You had me scared for a minute, but I don't think the XML grammar
allows this (it would be a serious error if it did):  where is the
license to recognized the entities within the tags?  There is none:
the Reference non-terminal occurs in the productions for content and
attribute-value literals, but not in the ones for start- and end-tags.


-C. M. Sperberg-McQueen
Received on Wednesday, 21 May 1997 19:10:33 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:26 UTC