[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Wellformed?
Jeff Rafter wrote: > I can't tell if this Wellformedness check is supposed to happen at the time > of construction of the replacement text or at the time of inclusion. My > guess would be that it should happen at the time of construction, and this > is supported by the addtional constraint that all productions must begin and > end in the same entity (i.e., you can't start an element in one entity and > end it in another). Does this apply to namespaces though? > > If the wellformedness/ns processing step occurs at the point of construction > and not when the replacement text is included then I must presume that none > of these items are NS correct-- because the "bar" prefix is undeclared. The > only way to make them correct would be to include an NS decl in the entity > literal. > > The reason I ask is because I am trying to patch the AElfred parser to check > for WFness of entity literals-- but I am not sure if I should be checking > WFness upon reading the literal or upon inclusion (or both?) I'm afraid your model is too simplistic. Some well-formed errors can be detected immediately; some can't. Please see Henry Thompson's response. Bob Foster http://xmlbuddy.com/
|
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
|