Query about doc well-formedness

Peter Jones peterj at wrox.com
Tue Aug 25 15:18:51 BST 1998

I'm not quite sure if you're agreeing with me here so I'll run through
the process as I see it and you can correct my mistakes:
I have a well-formed document thus:
	<text> Blah blah blah &ent1; </text>

&ent1; and &ent2; are by definition parsed entities. But within the
above document there is no indication as to whether the 'contents' of
the entity (the substitution which occurs at parse time) are
Q1) will a non-validating parser flag an error when it encounters either
of the entity references above?
My thinking here is that it should, as parsing means that the
substitution should occur. Am I wrong here? 

(ii) in order to avoid the referencing problem I put <!ENTITY....>
declarations in the doc above to provide the 'answers' to the entity
Q2) Will a non-validating parser know how to deal with such <!ENTITY...>
declarations and thus not flag errors on the entity references at parse
time? I.e. will I avoid being forced to use a validating parser to deal
with the document.


Peter Jones
WebDev Technical Editor
Wrox Press
mailto:peterj at wrox.com
Wrox Press UK Ltd.
Tel 44 121 706 6826
Fax 44 121 706 2967

> -----Original Message-----
> From:	Henry S. Thompson [SMTP:ht at cogsci.ed.ac.uk]
> Sent:	Tuesday, August 25, 1998 2:03 PM
> To:	Peter Jones
> Subject:	RE: Query about doc well-formedness
> Ah, I see a source of your confusion.  PARSED entity doesn't
> necessarily mean VALIDATED, just processed as XML as the processor is
> processing XML in the matrix document, so in the case of a
> well-formedness-checking-only processor, PARSED means well-formed.
> ht

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