Quotes in PEReferences
cowan at locke.ccil.org
Fri Aug 7 17:17:48 BST 1998
Richard Tobin quoted:
> > <!DOCTYPE test [
> > <!ELEMENT test (#PCDATA)>
> > <!ENTITY % p0 "a quote (") test">
> > <!ENTITY % p1 "<!ENTITY e1 "">
> > %p1;%p0;">
> > ]>
> > <test>This is&e1; .</test>
> > From what I understand, this seems well formed!?
> So suppose it was instead in the external subset. It would still be wrong
> (invalid) because declarations must start and end in the same entity
> (validity constraint on production 29).
Yes, it's invalid. But is it WF? I say it is WF, despite the
regrettable nature of this particular WF entity. Ditto with
(in the external subset):
<!ENTITY % StartEntity "<!ENTITY">
%StartEntity; Foo "Foo">
Ugh, yuck. But WF.
John Cowan http://www.ccil.org/~cowan cowan at ccil.org
You tollerday donsk? N. You tolkatiff scowegian? Nn.
You spigotty anglease? Nnn. You phonio saxo? Nnnn.
Clear all so! 'Tis a Jute.... (Finnegans Wake 16.5)
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
More information about the Xml-dev