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

Re: Without DTD Mapping

Subject: Re: Without DTD Mapping
From: Dave Pawson <davep@xxxxxxxxxxxxx>
Date: Tue, 26 Aug 2008 11:17:33 +0100
Re:  Without DTD Mapping
David Carlisle wrote:
LexEv currently will still try and fail to resolve the entity... but
that would be a useful feature to add...

If there is an external dtd that hasn't been read then an application can (if it wants) trap the undefined entity and do something with it (as the document as a whole is still well formed) but if (as in this case) there is no DOCTYPE but there is an entity reference then the document is not well formed and while it would no doubt be technically possible to trap the entity references I believe it would not be conformant with the XML recommendation


http://www.w3.org/TR/REC-xml/#dt-fatal


IMHO Andrews code falls into that  area which is entering the
'xml processor', i.e. it is trapping a potential error in the same
way that a parser is (when parsing with a DTD to resolve the entities).

Worth pointing out that the document is strictly non-conformant,
though a worthwhile transform option since it comes up so often.

Andrew, what would you do when trapping entity events
from an instance that has a DTD? Do the sax events precede
the parsers resolution using the DTD or follow it?




regards


--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

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.