logo       


Re: SAX2: When to resolve System Ids: msg#00044

Subject: Re: SAX2: When to resolve System Ids

"Karl Waclawek" <karl@xxxxxxxxxxxx> wrote on 03/31/2004 12:30:03 AM:

>
> > When I raised this a couple weeks ago, it got lost (possibly because these
> > threads are getting fragmented between sax-devel and xml-dev) in the
> > discussion on the canonical location for feature documentation. Either it
> > was always intended that the systemId passed to
> > DeclHandler.externalEntityDecl() be fully resolved or including this
> > method among those affected by resolve-dtd-uris is an error.
>
> For now I have decided to implement it like the feature
> documentation suggests,
> as I fail to see why externalEntityDecl() should be treated differently.
> Maybe I am overlooking something obvious.


Two words... backwards compatibility.

I believe the text in DeclHandler.externalEntityDecl() predates this feature. It says that systemId is the 'declared' system identifier. Xerces for instance reports the declared system identifier as it was specified in the document to DeclHandler.externalEntityDecl(). It reports an absolute URI for DTDHandler.notationDecl() and DTDHandler.unparsedEntityDecl(). It's what the javadoc says. I agree this doesn't make much sense, but changing the behaviour for DeclHandler.externalEntityDecl() now has the potential to affect users of SAX who rely on this parameter being the specified system identifier and not the one absolutized against a base URI.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@xxxxxxxxxx

E-mail: mrglavas@xxxxxxxxxx
Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
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