logo       

Re: [PATCH]: possible fixes for resolve-dtd-uris inconsistency: msg#00045

Subject: Re: [PATCH]: possible fixes for resolve-dtd-uris inconsistency
> Here are some possible fixes.
> 
> The first (org.xml.sax.package.html.diff) drops 
> DeclHandler.externalEntityDecl from the list of methods affected by the 
> resolve-dtd-uris feature.
> 
> The second (org.xml.sax.ext.DeclHandler.java.diff) aligns the description 
> of DeclHandler.externalEntityDecl with DTDHandler.unparsedEntityDecl, 
> requiring that the parser absolutize the system identifier, though this is 
> backwards incompatible and may affect some real world users who expect the 
> declared system identifier even if it was always intended that the system 
> id passed to DeclHandler.externalEntityDecl be fully resolved.

My vote is for the second fix. Unless someone can convince me of a good reason
why DeclHandler.externalEntityDecl  should be treated differently.

In SAX.NET at least, this would be preferable, as there is almost no need for
backwards compatibility.

> 
> Karl had another suggestion (2004-03-31): 
> 
> "Maybe it could be settled this way:
> 
> If the application reads or sets the "resolve-dtd-uris" feature,
> then the parser is bound by its current documentation. However, 
> in its initial state the parser works as as originally documented.
> Obviously there would be no documented way to reset the parser
> to its inital state, and one would have to create a new instance
> for that purpose.
> 
> This would allow legacy application to work.
> (not an elegant solution)"

Even though I made this suggestion I don't really like it.
It's a sacrifice on the altar of backwards compatibility.

Karl


-------------------------------------------------------
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
_______________________________________________
List: sax-devel, sax-devel@xxxxxxxxxxxxxxxxxxxxx
See:  http://www.saxproject.org/
https://lists.sourceforge.net/lists/listinfo/sax-devel



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe