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

RE: Microsot parser is OK (Was: Re: Copyright symbol in FOP)

Subject: RE: Microsot parser is OK (Was: Re: Copyright symbol in FOP)
From: Jonathan Marsh <jmarsh@xxxxxxxxxxxxx>
Date: Fri, 28 Apr 2000 10:04:48 -0700
dom parse copyright symbol
Mike Kay wrote:
> I suspect an XML parser should report this as an error. The 
> XML version of
> the XML specification itself, however, contains the line 
> 
> <!ENTITY lt     "<">
> 
> and most parsers accept it: but IE5 doesn't. For once I think 
> MS are in the
> right.

The XML Core Working Group looked at this issue at our behest, and has
confirmed that the above entity is mal-formed, but a parser should only
report an error if this entity is actually referenced.  Errata are in the
process of being issued to clarify this.  In the case of the XML spec
itself, a correct declaration exists (if I recall correctly) that overrides
the faulty declaration, so the entity is never referenced and no errors
should result.

However, DOM Level 1 states that for each entity declaration, an entity node
is built.  It makes no provision for malformed but un-referenced entities,
assuming that the XML parser will take care of all well-formedness issues.
There appears to be a hole in the standards, best addressed by an errata
against DOM Level 1.  Until then, we have a dilemma over which
recommendation we want to conform to.  The solution we judged to be cleanest
to let the parser determine well-formedness.

Note that there is an additional ambiguity over the extent (if any) that the
built-in entities can be redeclared, which may be contributing to the
non-interoperable results described.

- Jonathan Marsh
  Microsoft


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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