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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Wellformed?

[ Lists Home | Date Index | Thread Index ]

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/




 

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

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