[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Query about doc well-formedness

  • From: Peter Jones <peterj@w...>
  • To: "'xml-dev@i...'" <xml-dev@i...>
  • Date: Tue, 25 Aug 1998 14:13:16 +0100

parsed means
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)
I have a well-formed document thus:
<root>
	<text> Blah blah blah &ent1; </text>
	&ent2;
</root>

&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
well-formed.
So 
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? 

So 
(ii) in order to avoid the referencing problem I put <!ENTITY....>
declarations in the doc above to provide the 'answers' to the entity
references.
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.

 regards,

Peter Jones
WebDev Technical Editor
Wrox Press
mailto:peterj@w...
***************
Wrox Press UK Ltd.
http://www.wrox.co.uk
Tel 44 121 706 6826
Fax 44 121 706 2967




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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.