[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
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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|