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

Re: When to check entity WFness according to 4.3.2

  • To: xml-dev@l...
  • Subject: Re: When to check entity WFness according to 4.3.2
  • From: richard@i... (Richard Tobin)
  • Date: Tue, 26 Oct 2004 11:18:23 +0100 (BST)
  • Cc:
  • In-reply-to: <417DED08.9060405@j...>
  • Organization: HCRC, University of Edinburgh

Re:  When to check entity WFness according to 4.3.2
In article <417DED08.9060405@j...> you write:

>"An internal general parsed entity is well-formed if its replacement 
>text matches the production labeled content."
>
>My question is: when should such a WFness check be performed.
>
>(a) Immediately after the literal is parsed
>(b) Immediately after the DTD has been parsed
>(c) Only when it is referenced
>
>I don't think (c) is the answer

But it turns out that (c) *is* the answer, because the well-formedness
of an entity is only relevant to the well-formedness of the document
if it is referenced.  See the definition of document well-formedness
at the beginning of section 2.1.

This means that you don't really have to check the entity's
well-formedness as such.  Just expanding the entity and checking the
well-formedness of the document as you go along will have the same
effect, provided you check that elements end in the same entity that
they started in (and maybe one or two other things, I forget).

-- Richard

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.