External DTD Grammar

Richard Tobin richard at cogsci.ed.ac.uk
Tue Aug 4 11:52:38 BST 1998


> <!ENTITY % endecls '<!ENTITY'>
> %endecls; % example 'test'>
> 
> This is not well formed, right? (please say yes)

It's well-formed but not valid (see production [29]).  So
non-validating processors don't have to detect the error.  (Of course
a n-v parser that doesn't read the external subset can't detect errors
in it - that's why it isn't a WF constraint - but there are n-v parsers
that do read it.)

My parser (RXP / LT-XML) relies on the fact that since PEs have spaces
inserted around them, they can only start and finish in places where
whitespace would be legal.  PEs are pushed and popped during whitespace
processing.

-- Richard

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;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list