Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 36920 invoked from network); 27 May 2002 20:41:54 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 27 May 2002 20:41:54 -0000 Received: (qmail 285 invoked by uid 97); 27 May 2002 20:41:55 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 223 invoked by uid 97); 27 May 2002 20:41:55 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 211 invoked by uid 98); 27 May 2002 20:41:54 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) X-Authentication-Warning: costinm.sfo.covalent.net: costin owned process doing -bs Date: Mon, 27 May 2002 13:38:14 -0700 (PDT) From: costinm@covalent.net X-X-Sender: costin@costinm.sfo.covalent.net To: Ant Developers List cc: conor@cortexebusiness.com.au Subject: Re: xmlParserAPIs.jar vs xml-apis.jar In-Reply-To: <3CF2918F.2040800@arielpartners.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N AFAIK, the xml-commons/java/external is the 'official' apache repository for xml apis ( JAXP, DOM, SAX ). I remember for 'updates' or bug fixes to the SAX spec ( after 2.0), and same thing may happened on DOM - the goal is to keep the repository in sync with the standard body. The differences in the .jar files are most likely due to different release dates. AFAIK all changes in DOM and SAX are backward compatible, and the new API should work with older implementations without problems. ( xml-apis.jar is no different than ant.jar - backward compatibility is a goal but usually you're safer with the latest version ). You should also keep in mind that JDK1.4 has its own version of SAX, DOM, JAXP and it is probably not updated with the latest fixes. Again, AFAIK both xalan and xerces are aware of this and their code should compile and work with JDK1.4. For those using SAXON - AFAIK saxon also implements the JAXP specs, so using it shouldn't be a problem. Having an explicit attribute to point to the parser/xslt implementation in all tasks that deal with XML would allow the user to explicitely chose. Costin On Mon, 27 May 2002, Craeg K Strong wrote: > Hello: > > What a mess! Who knows if those two classes are important or not... > > Of course, all of the Ant tests run without them (I removed xmlParserAPIs.jar > and everything ran find on both Win32 and Linux with xml-apis.jar) > > but who knows what 3rd party code would break in unexpected ways if we didn't > include them. >:-( > > Perhaps the Xalan people would give us a more up to date xml-apis.jar that > includes those two classes? Then we could avoid bundling xmlParserAPIs.jar > > Also, I like the idea of xalan.jar in lib/optional As you say, it is not > required, but isn't that the point of the optional directory? > > You include junit.jar if you want to run the tests > You include xalan.jar if you want to run the Xslt tests or use > > While it is not required, it would be a virtuous thing to do, especially since > it would be a version that is guaranteed to work with the bundled version > of xml-apis.jar It would therefore probably prevent lots of support > questions/emails/spurious bug reports. Ne c'est pas? > > --Craeg > > >> [PROPOSAL] > > >> What about this as an alternative: > > >> 1) replace xmlParserAPIs.jar with xml-apis.jar in lib/ > >> 2) put xalan.jar in lib/optional > >> 3) apply the attached patches to bootstrap.bat, bootstrap.sh, > >> build.sh, build.bat, and build.xml > > >> xml-apis.jar seems to be a strict superset of xmlParserAPIs.jar > >> That is, it is the same except that it includes the entire JAXP > >> rather than xerces' chopped down version. > > > I agree that (1) would be the simplest fix but I did a quick check with the > > > latest xalan xml-apis.jar and the xerces xmlParserAPIs.jar in Ant's CVS and \ > > found two classes which are not in xml-apis.jar > > > Only in temp2/org/xml/sax/helpers: NewInstance.class > > Only in temp2/org/w3c/dom/html: HTMLDOMImplementation.class > > > So, it is not a strict superset. > > > Not sure that (2) is required > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > -- To unsubscribe, e-mail: For additional commands, e-mail: