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

Re: E55 Substantive


e55 problems
>Again, the problem is that it creates yet another maybe fatal, maybe 
>not error which reduces interoperability.  THere doe snot appear to 
>be any ambiguity about this in the current spec. A change here is 
>unjustified and unnecessary. Parsers that do not correctly implement 
>this requirement are nonconformant and should be fixed. That's all.

Suppose we have

   <!ENTITY foo "&bar;">

The reason this is a problem is that when the entity value for foo is
read, the referred-to entity bar may not yet be defined, so the parser
cannot tell whether it is parsed or unparsed.

To "fix" this is midly tedious; parsers could be changed to keep a
list of entities referred to in entity values, and check that they
aren't unparsed when they are eventually defined.  XML doesn't require
this sort of thing in most analogous cases but rather allows the
parser to just make a single pass: for example, if bar is undefined,
there is no error, and entity references in attribute defaults cannot
be forward references at all.

If the entity foo is ever *used*, the error will be detected then
(as it will be if bar is undefined).

So I think the natural thing would be to have "bypassed" instead of
"forbidden", but since existing implementations varied - most but not
all of the ones we checked treated it as "bypassed" - we changed it to
"error".

-- 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.