Re: [xmljs-users] SAX: Entity Resolution/Skipping
Brought to you by:
djoham,
witchhunter
From: David J. <dj...@ya...> - 2004-04-01 23:20:27
|
Hi Jim, That sounds like it would be a nice addition. In making your patch, could you do the following please? * Coordinate with Robert (cc'd on this Email) so that your patch doesn't collide with the work he's doing. Robert is planning on greatly extending XML for <SCRIPT>'s entity handling and I want to make sure your two patches work together. * Update the pre-made event handler file * Add a testcase or two (however many you think appropriate) to the SAX and W3C DOM test suites. * If you would like, update the SAX and DOM documentation for entity handling. If you would rather not, I'm just fine with a brief blurb from you in an Email describing exactly how the SAX and DOM parsers should act and how a programmer would go about using your change. I'd be happy to update the docs accordingly. Thanks for your offer! Best regards, David --- Jim Cheng <ji...@ps...> wrote: > Hi everyone, > > I've recently did a straight port of the XML for <SCRIPT> 3.0's > SAX parser to Flash MX 2004's Actionscript 2.0 (essentially > ECMAScript Draft 4) to bootstrap the development of an open- > source, standards-compliant DOM that I'm working on. See: > > http://www.psalterego.com/flash/sax.html > > In using the SAX parser, I've run into an issue with resolving > general entities that aren't specified by the XML recommendation, > e.g. Latin-1 XHTML entities like é and such. At present, > the XML for <SCRIPT> SAX parser throws an "unknown entity" error > and exits. > > As the SAX parser isn't validating and doesn't implement the > SAX2 entityResolver interface, I would like to suggest that a > skippedEntity event be added that would be fired (if defined) > instead of throwing a fatal unknown entity error to allow the > SAX parser to play well with XML files that use entities other > than predefined entities given in the XML specification: > > http://www.w3.org/TR/2004/REC-xml-20040204/#sec-predefined-ent > > Say, implementing a skippedEntity event like the one in SAX2's > contentHandler interface. I could provide a patch against the > current code to implement this if there's interest. Thoughts? > > Regards, > Jim > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > xmljs-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmljs-users __________________________________ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ |