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 Marc Jambert <ma...@vegatechnologies.fr> on 2005/07/12 10:44:45 UTC

[Fwd: Re: XPathAPI, JAXP and DTM features]


Re: WSAD - Getting to know Xalan-J version

Posted by Mukul Gandhi <ga...@gmail.com>.
Thanks for the ideas.. I'll check with my installation.

Regards,
Mukul

On 7/14/05, Yash Talwar <yt...@ca.ibm.com> wrote:
> Hi Mukul,
> In WSAD 5.1.2, when you start WebSphere Test Environment for base_v5 (WTE
> 5), another jvm is started for WTE. WebSphere 5 starts in this jvm and load
> the jar files that are located in lib directory.
> Then, you publish the servlet application on WTE and invoke the servlet.
> When servlet is invoked, JVM finds the xalan specific classes with
> libraries that are loaded for WTE.
> 
> You can pick up your own copy of xalan.jar in the classpath.  However, this
> information is in scope of usage of WebSphere and not xalan.  For this
> information, please have a look at WAS Info center for version 5.  I
> bellieve there are properties such as PARENT_FIRST / PARENT_LAST in
> WebSphere that you can set in order to pick up your own copy of xalan.jar
> before WTE libraries are picked.  Even WSAD help section should have this
> information.
> 
> I hope this helps!
> Thanks!
> 
> Yash Talwar
> XSLT Development / Xalan
> IBM Toronto Lab
> EMail: ytalwar@ca.ibm.com
> Phone #:  905-413-5920
> 
> 
> 
>             Mukul Gandhi
>             <gandhi.mukul@gma
>             il.com>                                                    To
>                                       Henry Zongaro/Toronto/IBM@IBMCA
>             07/13/2005 03:14                                           cc
>             PM                        xalan-j-users@xml.apache.org
>                                                                   Subject
>                                       Re: WSAD - Getting to know Xalan-J
>             Please respond to         version
>               Mukul Gandhi
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Thank you for reply. I'll check it.. In my WSAD installation, there is
> xalan.jar at location E:\Program Files\IBM\WebSphere
> Studio\runtimes\base_v5\lib. So Xalan is bundled with WSAD. It seem to
> be hooked to JAXP internally. But how? Is there some IBM JRE
> configuration file somewhere? I also have another xalan.jar(for
> Xalan-j 2.6.0) in CLASSPATH which is the latest distributable from
> Apache's site http://xml.apache.org.
> 
> I am thinking how can I use both Xalans to work simultaneously on my
> PC. Any ideas please?
> 
> Regards,
> Mukul
> 
> On 7/13/05, Henry Zongaro <zo...@ca.ibm.com> wrote:
> > Hi, Mukul.
> >
> > Mukul Gandhi <ga...@gmail.com> wrote on 2005-07-13 07:21:52 AM:
> > > Sorry if this question is off-topic. I am developing a JAXP(using TrAX
> > > API) application in WSAD 5.1.2. I have actually written a Servlet
> > > which does XSLT transformation using TrAX API. I am successfully
> > > getting the transformation result on the browser.
> > >
> > > I believe IBM JRE and Xalan-J is being used behind the scenes. I am
> > > interested to know which version of Xalan-J is being used. How can I
> > > find this information?
> >
> >     You can try invoking the org.apache.xalan.Version class.  If it's a
> > copy of Xalan-J that's included with the IBM JRE, the name will be
> XSLT4J.
> >  The version number of XSLT4J has a rough correspondence with that of
> > Xalan-J, but the two are not entirely identical.
> >
> > Thanks,
> >
> > Henry
> > ------------------------------------------------------------------
> > Henry Zongaro      Xalan development
> > IBM SWS Toronto Lab   T/L 969-6044;  Phone +1 905 413-6044
> > mailto:zongaro@ca.ibm.com
> >
> >
> 
> 
>

Re: WSAD - Getting to know Xalan-J version

Posted by Yash Talwar <yt...@ca.ibm.com>.
Hi Mukul,
In WSAD 5.1.2, when you start WebSphere Test Environment for base_v5 (WTE
5), another jvm is started for WTE. WebSphere 5 starts in this jvm and load
the jar files that are located in lib directory.
Then, you publish the servlet application on WTE and invoke the servlet.
When servlet is invoked, JVM finds the xalan specific classes with
libraries that are loaded for WTE.

You can pick up your own copy of xalan.jar in the classpath.  However, this
information is in scope of usage of WebSphere and not xalan.  For this
information, please have a look at WAS Info center for version 5.  I
bellieve there are properties such as PARENT_FIRST / PARENT_LAST in
WebSphere that you can set in order to pick up your own copy of xalan.jar
before WTE libraries are picked.  Even WSAD help section should have this
information.

I hope this helps!
Thanks!

Yash Talwar
XSLT Development / Xalan
IBM Toronto Lab
EMail: ytalwar@ca.ibm.com
Phone #:  905-413-5920


                                                                           
             Mukul Gandhi                                                  
             <gandhi.mukul@gma                                             
             il.com>                                                    To 
                                       Henry Zongaro/Toronto/IBM@IBMCA     
             07/13/2005 03:14                                           cc 
             PM                        xalan-j-users@xml.apache.org        
                                                                   Subject 
                                       Re: WSAD - Getting to know Xalan-J  
             Please respond to         version                             
               Mukul Gandhi                                                
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Thank you for reply. I'll check it.. In my WSAD installation, there is
xalan.jar at location E:\Program Files\IBM\WebSphere
Studio\runtimes\base_v5\lib. So Xalan is bundled with WSAD. It seem to
be hooked to JAXP internally. But how? Is there some IBM JRE
configuration file somewhere? I also have another xalan.jar(for
Xalan-j 2.6.0) in CLASSPATH which is the latest distributable from
Apache's site http://xml.apache.org.

I am thinking how can I use both Xalans to work simultaneously on my
PC. Any ideas please?

Regards,
Mukul

On 7/13/05, Henry Zongaro <zo...@ca.ibm.com> wrote:
> Hi, Mukul.
>
> Mukul Gandhi <ga...@gmail.com> wrote on 2005-07-13 07:21:52 AM:
> > Sorry if this question is off-topic. I am developing a JAXP(using TrAX
> > API) application in WSAD 5.1.2. I have actually written a Servlet
> > which does XSLT transformation using TrAX API. I am successfully
> > getting the transformation result on the browser.
> >
> > I believe IBM JRE and Xalan-J is being used behind the scenes. I am
> > interested to know which version of Xalan-J is being used. How can I
> > find this information?
>
>     You can try invoking the org.apache.xalan.Version class.  If it's a
> copy of Xalan-J that's included with the IBM JRE, the name will be
XSLT4J.
>  The version number of XSLT4J has a rough correspondence with that of
> Xalan-J, but the two are not entirely identical.
>
> Thanks,
>
> Henry
> ------------------------------------------------------------------
> Henry Zongaro      Xalan development
> IBM SWS Toronto Lab   T/L 969-6044;  Phone +1 905 413-6044
> mailto:zongaro@ca.ibm.com
>
>



Re: WSAD - Getting to know Xalan-J version

Posted by Mukul Gandhi <ga...@gmail.com>.
Thank you for reply. I'll check it.. In my WSAD installation, there is
xalan.jar at location E:\Program Files\IBM\WebSphere
Studio\runtimes\base_v5\lib. So Xalan is bundled with WSAD. It seem to
be hooked to JAXP internally. But how? Is there some IBM JRE
configuration file somewhere? I also have another xalan.jar(for
Xalan-j 2.6.0) in CLASSPATH which is the latest distributable from
Apache's site http://xml.apache.org.

I am thinking how can I use both Xalans to work simultaneously on my
PC. Any ideas please?

Regards,
Mukul

On 7/13/05, Henry Zongaro <zo...@ca.ibm.com> wrote:
> Hi, Mukul.
> 
> Mukul Gandhi <ga...@gmail.com> wrote on 2005-07-13 07:21:52 AM:
> > Sorry if this question is off-topic. I am developing a JAXP(using TrAX
> > API) application in WSAD 5.1.2. I have actually written a Servlet
> > which does XSLT transformation using TrAX API. I am successfully
> > getting the transformation result on the browser.
> >
> > I believe IBM JRE and Xalan-J is being used behind the scenes. I am
> > interested to know which version of Xalan-J is being used. How can I
> > find this information?
> 
>     You can try invoking the org.apache.xalan.Version class.  If it's a
> copy of Xalan-J that's included with the IBM JRE, the name will be XSLT4J.
>  The version number of XSLT4J has a rough correspondence with that of
> Xalan-J, but the two are not entirely identical.
> 
> Thanks,
> 
> Henry
> ------------------------------------------------------------------
> Henry Zongaro      Xalan development
> IBM SWS Toronto Lab   T/L 969-6044;  Phone +1 905 413-6044
> mailto:zongaro@ca.ibm.com
> 
>

Re: WSAD - Getting to know Xalan-J version

Posted by Henry Zongaro <zo...@ca.ibm.com>.
Hi, Mukul.

Mukul Gandhi <ga...@gmail.com> wrote on 2005-07-13 07:21:52 AM:
> Sorry if this question is off-topic. I am developing a JAXP(using TrAX
> API) application in WSAD 5.1.2. I have actually written a Servlet
> which does XSLT transformation using TrAX API. I am successfully
> getting the transformation result on the browser.
> 
> I believe IBM JRE and Xalan-J is being used behind the scenes. I am
> interested to know which version of Xalan-J is being used. How can I
> find this information?

     You can try invoking the org.apache.xalan.Version class.  If it's a 
copy of Xalan-J that's included with the IBM JRE, the name will be XSLT4J. 
 The version number of XSLT4J has a rough correspondence with that of 
Xalan-J, but the two are not entirely identical.

Thanks,

Henry
------------------------------------------------------------------
Henry Zongaro      Xalan development
IBM SWS Toronto Lab   T/L 969-6044;  Phone +1 905 413-6044
mailto:zongaro@ca.ibm.com


WSAD - Getting to know Xalan-J version

Posted by Mukul Gandhi <ga...@gmail.com>.
Sorry if this question is off-topic. I am developing a JAXP(using TrAX
API) application in WSAD 5.1.2. I have actually written a Servlet
which does XSLT transformation using TrAX API. I am successfully
getting the transformation result on the browser.

I believe IBM JRE and Xalan-J is being used behind the scenes. I am
interested to know which version of Xalan-J is being used. How can I
find this information?

Regards,
Mukul

Re: [Fwd: Re: XPathAPI, JAXP and DTM features]

Posted by Henry Zongaro <zo...@ca.ibm.com>.
Hi, Marc.

Marc Jambert <ma...@vegatechnologies.fr> wrote on 2005-07-12 
10:50:32 AM:
> By the way what's the meaning of 
> "http://apache.org/xalan/features/optimize" then ?

     It requests that the processor perform some optimization of the 
instructions in an XSLT stylesheet - for example, looking for 
subexpressions that are common to more than one expression and evaluated 
with respect to the same context, and so can be evaluated just once.

Thanks,

Henry
------------------------------------------------------------------
Henry Zongaro      Xalan development
IBM SWS Toronto Lab   T/L 969-6044;  Phone +1 905 413-6044
mailto:zongaro@ca.ibm.com


Re: [Fwd: Re: XPathAPI, JAXP and DTM features]

Posted by Marc Jambert <ma...@vegatechnologies.fr>.
OK thanks very much for your answers. I thought that DTM was *just* an 
optimization.
I had not understood that it was rather an in-depth implementation choice.

By the way what's the meaning of 
"http://apache.org/xalan/features/optimize" then ?

Thanks again

Marc


Henry Zongaro wrote:

>Hi, Marc.
>
>Marc Jambert <ma...@vegatechnologies.fr> wrote on 2005-07-12 
>04:44:45 AM:
>  
>
>>Henry Zongaro wrote:
>>It is very specific to a special implementation of DOM that I am writing 
>>    
>>
>
>  
>
>>for dealing with huge documents (each DOM node is created on demand and 
>>not necessarily kept in memory). I think that the DTM mechanism assumes 
>>that a DOM node will be always the same Java object, which is not the 
>>case for me.
>>I have already XPath working over my custom DOM with Jaxen and Saxon but 
>>    
>>
>
>  
>
>>it would be nice if it could work as well with JAXP default 
>>    
>>
>implementation.
>  
>
>>That is why would like to disable DTM mechanism. Do you think there is a 
>>    
>>
>
>  
>
>>solution ?
>>    
>>
>
>     If you're asking for a way to use the XPath API of Xalan-J without 
>using DTM, it's not possible without rewriting large parts of the 
>processor; the implementation of XPath and XSLT in Xalan-J is built upon 
>DTM.
>
>     Joseph Kesselman did some work on a revised DTM implementation over 
>DOM which, if I recall correctly, does not rely on a DOM node to be always 
>the same Java object, but I don't believe that work was ever completed. If 
>you're interested, you can take a look at the code in the xslt20 branch of 
>the xml-xalan project, in the org.apache.xml.dtm.dom2dtm2 package.
>
>Thanks,
>
>Henry
>------------------------------------------------------------------
>Henry Zongaro      Xalan development
>IBM SWS Toronto Lab   T/L 969-6044;  Phone +1 905 413-6044
>mailto:zongaro@ca.ibm.com
>
>
>
>  
>


Re: [Fwd: Re: XPathAPI, JAXP and DTM features]

Posted by Henry Zongaro <zo...@ca.ibm.com>.
Hi, Marc.

Marc Jambert <ma...@vegatechnologies.fr> wrote on 2005-07-12 
04:44:45 AM:
> Henry Zongaro wrote:
> It is very specific to a special implementation of DOM that I am writing 

> for dealing with huge documents (each DOM node is created on demand and 
> not necessarily kept in memory). I think that the DTM mechanism assumes 
> that a DOM node will be always the same Java object, which is not the 
> case for me.
> I have already XPath working over my custom DOM with Jaxen and Saxon but 

> it would be nice if it could work as well with JAXP default 
implementation.
> 
> That is why would like to disable DTM mechanism. Do you think there is a 

> solution ?

     If you're asking for a way to use the XPath API of Xalan-J without 
using DTM, it's not possible without rewriting large parts of the 
processor; the implementation of XPath and XSLT in Xalan-J is built upon 
DTM.

     Joseph Kesselman did some work on a revised DTM implementation over 
DOM which, if I recall correctly, does not rely on a DOM node to be always 
the same Java object, but I don't believe that work was ever completed. If 
you're interested, you can take a look at the code in the xslt20 branch of 
the xml-xalan project, in the org.apache.xml.dtm.dom2dtm2 package.

Thanks,

Henry
------------------------------------------------------------------
Henry Zongaro      Xalan development
IBM SWS Toronto Lab   T/L 969-6044;  Phone +1 905 413-6044
mailto:zongaro@ca.ibm.com