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

Re: Wellformed?

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


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.
First Name
Last Name
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.