OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: Query about doc well-formedness

[ Lists Home | Date Index | Thread Index ]
  • From: Peter Jones <peterj@wrox.com>
  • To: "'xml-dev@ic.ac.uk'" <xml-dev@ic.ac.uk>
  • Date: Tue, 25 Aug 1998 14:13:16 +0100

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
Wrox Press UK Ltd.
Tel 44 121 706 6826
Fax 44 121 706 2967

> -----Original Message-----
> From:	Henry S. Thompson [SMTP:ht@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@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS