- From: Gavin Nicol <gtn@eps.inso.com>
- Date: Fri, 23 May 1997 09:57:49 -0400
- 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