Re: SD1 - Short End Tags [fmt]

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">
>]>
><author>
>  <&a;>foo<&b;>
>  <&c;>bar<&d;>
></author>

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.

Whew!

-C. M. Sperberg-McQueen

Received on Wednesday, 21 May 1997 19:10:33 UTC