You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Bradley Wagner <br...@hannonhill.com> on 2008/04/16 15:26:48 UTC

xml-apis dependency

Hi,

Let me preface this by saying that I'm sure this has been answered  
somewhere, but I searched the list archives and read what the Xalan J  
documentation.

Is the xml-apis.jar still a dependency when running in Java 1.5? Seems  
like the JAXP classes that are needed come with the JVM now. Are there  
other things outside the JAXP 1.3 spec that are provided in this xml- 
apis.jar that I need?

I have an application with Xalan running it already and I know that it  
does not have any problem, compiling or deploying so far without xml- 
apis.jar in there. I've also tried some basic transformations.

Thanks,
Bradley

Re: xml-apis dependency

Posted by Tatu Saloranta <co...@yahoo.com>.
--- Bradley Wagner <br...@hannonhill.com>
wrote:

> Thanks for the quick response. If I understand you
> correctly, xml-apis  
> is an improvement rather than a true requirement
> when running with  
> Java 5.0.
> 
> All of the interfaces, classes that are implemented
> or subclassed by  
> Xalan are available with Java 5 so I would not run
> into any class  
> loading (ClassNotFoundException) errrors.

Further, if you do want to use improved versions, I
suspect you have to use "endorsed" mechanism.
Otherwise JDK-bundled classes tend to get preference
over other jars. Unless rules are different for
extensions (javax.*)?

(same won't apply to the API implementation itself
which gets introspected correctly as JDK-included
version lives under different package)

-+ Tatu +-



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Re: xml-apis dependency

Posted by Bradley Wagner <br...@hannonhill.com>.
The xml-apis I have came bundled with JBoss 3.2.7 (admittedly ancient)  
and uses the JAXP 1.2 spec as per the JAR's manifest file.

I don't see an org.w3c.dom.xpath package in either my 1.5 JRE classes  
or this xml-apis JAR. I do see a org.w3c.dom.xpath package in my Xalan  
2.6 JAR but those interfaces don't appear to extend anything that's  
not present in my JRE.

It seems to me that the xml-apis I am using is so old that the 1.5 JRE  
version of these APIs would preferable anyway.

Bradley

On Apr 16, 2008, at 11:03 AM, Michael Glavassevich wrote:

> Now that I think of it there are several APIs (org.w3c.dom.xpath for
> example) bundled in xml-apis.jar which are not included in the JAXP  
> 1.3
> specification (and by extension Java 5) that Xerces and Xalan depend  
> on.
> Sun may have shipped them but there's no guarantee that they'll be  
> there.
>
> Thanks.
>
> Michael Glavassevich
> XML Parser Development
> IBM Toronto Lab
> E-mail: mrglavas@ca.ibm.com
> E-mail: mrglavas@apache.org
>
> Bradley Wagner <br...@hannonhill.com> wrote on 04/16/2008  
> 09:55:24
> AM:
>
>> Thanks for the quick response. If I understand you correctly, xml- 
>> apis
>> is an improvement rather than a true requirement when running with
>> Java 5.0.
>>
>> All of the interfaces, classes that are implemented or subclassed by
>> Xalan are available with Java 5 so I would not run into any class
>> loading (ClassNotFoundException) errrors.
>>
>> Bradley
>>
>> On Apr 16, 2008, at 9:47 AM, Michael Glavassevich wrote:
>>
>>> Hi Bradley,
>>>
>>> xml-apis.jar contains bug fixes (and even performance improvements)
>>> [1]
>>> which may not be in Java 5 so you may be trading these off by not
>>> carrying
>>> the jar with your application.
>>>
>>> Thanks.
>>>
>>> [1]
>>> http://xml.apache.org/commons/changes.html#version_xml-commons-
>> external-1.3.04
>>>
>>> Michael Glavassevich
>>> XML Parser Development
>>> IBM Toronto Lab
>>> E-mail: mrglavas@ca.ibm.com
>>> E-mail: mrglavas@apache.org
>>>
>>> Bradley Wagner <br...@hannonhill.com> wrote on 04/16/2008
>>> 09:26:48
>>> AM:
>>>
>>>> Hi,
>>>>
>>>> Let me preface this by saying that I'm sure this has been answered
>>>> somewhere, but I searched the list archives and read what the  
>>>> Xalan J
>>>> documentation.
>>>>
>>>> Is the xml-apis.jar still a dependency when running in Java 1.5?
>>>> Seems
>>>> like the JAXP classes that are needed come with the JVM now. Are
>>>> there
>>>> other things outside the JAXP 1.3 spec that are provided in this  
>>>> xml-
>>>> apis.jar that I need?
>>>>
>>>> I have an application with Xalan running it already and I know that
>>>> it
>>>> does not have any problem, compiling or deploying so far without  
>>>> xml-
>>>> apis.jar in there. I've also tried some basic transformations.
>>>>
>>>> Thanks,
>>>> Bradley
>


Re: xml-apis dependency

Posted by Michael Glavassevich <mr...@ca.ibm.com>.
Now that I think of it there are several APIs (org.w3c.dom.xpath for
example) bundled in xml-apis.jar which are not included in the JAXP 1.3
specification (and by extension Java 5) that Xerces and Xalan depend on.
Sun may have shipped them but there's no guarantee that they'll be there.

Thanks.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org

Bradley Wagner <br...@hannonhill.com> wrote on 04/16/2008 09:55:24
AM:

> Thanks for the quick response. If I understand you correctly, xml-apis
> is an improvement rather than a true requirement when running with
> Java 5.0.
>
> All of the interfaces, classes that are implemented or subclassed by
> Xalan are available with Java 5 so I would not run into any class
> loading (ClassNotFoundException) errrors.
>
> Bradley
>
> On Apr 16, 2008, at 9:47 AM, Michael Glavassevich wrote:
>
> > Hi Bradley,
> >
> > xml-apis.jar contains bug fixes (and even performance improvements)
> > [1]
> > which may not be in Java 5 so you may be trading these off by not
> > carrying
> > the jar with your application.
> >
> > Thanks.
> >
> > [1]
> > http://xml.apache.org/commons/changes.html#version_xml-commons-
> external-1.3.04
> >
> > Michael Glavassevich
> > XML Parser Development
> > IBM Toronto Lab
> > E-mail: mrglavas@ca.ibm.com
> > E-mail: mrglavas@apache.org
> >
> > Bradley Wagner <br...@hannonhill.com> wrote on 04/16/2008
> > 09:26:48
> > AM:
> >
> >> Hi,
> >>
> >> Let me preface this by saying that I'm sure this has been answered
> >> somewhere, but I searched the list archives and read what the Xalan J
> >> documentation.
> >>
> >> Is the xml-apis.jar still a dependency when running in Java 1.5?
> >> Seems
> >> like the JAXP classes that are needed come with the JVM now. Are
> >> there
> >> other things outside the JAXP 1.3 spec that are provided in this xml-
> >> apis.jar that I need?
> >>
> >> I have an application with Xalan running it already and I know that
> >> it
> >> does not have any problem, compiling or deploying so far without xml-
> >> apis.jar in there. I've also tried some basic transformations.
> >>
> >> Thanks,
> >> Bradley


Re: xml-apis dependency

Posted by Bradley Wagner <br...@hannonhill.com>.
Thanks for the quick response. If I understand you correctly, xml-apis  
is an improvement rather than a true requirement when running with  
Java 5.0.

All of the interfaces, classes that are implemented or subclassed by  
Xalan are available with Java 5 so I would not run into any class  
loading (ClassNotFoundException) errrors.

Bradley

On Apr 16, 2008, at 9:47 AM, Michael Glavassevich wrote:

> Hi Bradley,
>
> xml-apis.jar contains bug fixes (and even performance improvements)  
> [1]
> which may not be in Java 5 so you may be trading these off by not  
> carrying
> the jar with your application.
>
> Thanks.
>
> [1]
> http://xml.apache.org/commons/changes.html#version_xml-commons-external-1.3.04
>
> Michael Glavassevich
> XML Parser Development
> IBM Toronto Lab
> E-mail: mrglavas@ca.ibm.com
> E-mail: mrglavas@apache.org
>
> Bradley Wagner <br...@hannonhill.com> wrote on 04/16/2008  
> 09:26:48
> AM:
>
>> Hi,
>>
>> Let me preface this by saying that I'm sure this has been answered
>> somewhere, but I searched the list archives and read what the Xalan J
>> documentation.
>>
>> Is the xml-apis.jar still a dependency when running in Java 1.5?  
>> Seems
>> like the JAXP classes that are needed come with the JVM now. Are  
>> there
>> other things outside the JAXP 1.3 spec that are provided in this xml-
>> apis.jar that I need?
>>
>> I have an application with Xalan running it already and I know that  
>> it
>> does not have any problem, compiling or deploying so far without xml-
>> apis.jar in there. I've also tried some basic transformations.
>>
>> Thanks,
>> Bradley
>


Re: xml-apis dependency

Posted by Michael Glavassevich <mr...@ca.ibm.com>.
Hi Bradley,

xml-apis.jar contains bug fixes (and even performance improvements) [1]
which may not be in Java 5 so you may be trading these off by not carrying
the jar with your application.

Thanks.

[1]
http://xml.apache.org/commons/changes.html#version_xml-commons-external-1.3.04

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org

Bradley Wagner <br...@hannonhill.com> wrote on 04/16/2008 09:26:48
AM:

> Hi,
>
> Let me preface this by saying that I'm sure this has been answered
> somewhere, but I searched the list archives and read what the Xalan J
> documentation.
>
> Is the xml-apis.jar still a dependency when running in Java 1.5? Seems
> like the JAXP classes that are needed come with the JVM now. Are there
> other things outside the JAXP 1.3 spec that are provided in this xml-
> apis.jar that I need?
>
> I have an application with Xalan running it already and I know that it
> does not have any problem, compiling or deploying so far without xml-
> apis.jar in there. I've also tried some basic transformations.
>
> Thanks,
> Bradley