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

Re: A uestion and possible problem

From: Gavin Nicol <gtn@eps.inso.com>
Date: Fri, 23 May 1997 09:57:49 -0400
Message-Id: <199705231357.JAA28795@nathaniel.ebt>
To: ht@cogsci.ed.ac.uk
CC: w3c-sgml-wg@w3.org
>I get the same results you do from our XML parser.  What do you think
>the standard predicts?

Well, the standard says:

>XML allows parameter entity references in a variety of places within
>the DTD. Parameter-entity references are always expanded immediately
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>upon being recognized, and the DTD must match the relevant rules of
>the grammar after all parameter-entity references have been
>expanded. In addition, parameter entities referred to in specific
>contexts are required to satisfy certain constraints in their
>replacement text; for example, a parameter entity referred to within
>the internal DTD subset must match the rule for markupdecl.

This seems to imply that in:

  <!DOCTYPE foo [
  <!ENTITY % pe   "'">
  <!ENTITY % pe2  '&pe;&pe;' >
  ]>

pe2 would be expanded to '''', which is illegal.

I should note that neither NXP nor lark can handle my example.
Received on Friday, 23 May 1997 09:59:24 UTC

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