[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    SV: xpath
From:       "Zetterman, Erik" <erik.zetterman () sogeti ! se>
Date:       2005-02-28 7:02:42
Message-ID: 3EA204D2E66759458D656B4D3049228F011D999E () sogorex01 ! ad ! sogeti ! se
[Download RAW message or body]

Hi
and thanks.
 
It's great there is an ant task for this but I'm thinking it would be even better, \
and make xbeans more "usage-friendly", to package the jars needed for xpath to work \
either: a) in the xbeans zip file
or 
b) in a separate jar/zip found at the download site(s)
 
Regards, Erik

________________________________

Från: Rajiv Balachandran [mailto:rbalacha@bea.com]
Skickat: fr 2005-02-25 18:52
Till: user@xmlbeans.apache.org
Ämne: RE: xpath 



Hi,

The ant build script downloads the Saxon jar from the following url:
http://voxel.dl.sourceforge.net/sourceforge/saxon/saxonb8-1-1.zip
The zip contains the saxon8.jar.

Hope this helps.

-Rajiv



-----Original Message-----
From: Jean-Christophe Pazzaglia [mailto:Jean-Christophe.Pazzaglia@eurecom.fr]
Sent: Friday, February 25, 2005 8:40 AM
To: user@xmlbeans.apache.org
Subject: Re: xpath


I built it from the source and
the jars are stored  under the
XMLBeansv2\trunk\build\lib
after a ant

jc

> Hi
> 
> I am also quite interested in those jars, since we would like to try out
> xpath in the 2.0 beta.
> 
> In 1.0.3, xbean_xpath.jar and others (eg jaxen) were included in the
> zip-file, so what has happened this time?
> 
> Susanna
> 
> -----Original Message-----
> From: Zetterman, Erik [mailto:erik.zetterman@sogeti.se]
> Sent: den 25 februari 2005 16:21
> To: user@xmlbeans.apache.org
> Subject: RE: xpath
> 
> 
> Hi
> And thanks for your quick reply
> 
> I have another question, where can I get these jar-files? In the
> xbean.zip is only xbean.jar and jsr173_api.jar. I suspect I need at
> least saxon8.jar and xbean_xpath.jar.
> 
> Erik
> 
> -----Original Message-----
> From: Jean-Christophe Pazzaglia
> [mailto:Jean-Christophe.Pazzaglia@eurecom.fr]
> Sent: den 25 februari 2005 3:39
> To: user@xmlbeans.apache.org
> Subject: Re: xpath
> 
> Dear Erik and other XMLBeaners,
> 
> I suspect that you encounter the bug referenced JIRA89 and
> after several attempts we (thanks to Yana) find out the reason
> (probably DOM related).
> 
> There is an isssue using xpath query with data structure built
> directly on memoryt (but not while reading an existing xml from a
> file/stream).
> If you encounter this bug, you may be able to execute your xpath
> by saving your data as a file and rereading it (cf workaround)
> 
> So the workaround is :
> 
> MyXMLType myobject = ...;
> 
> File tmp = File.createTempFile(/"xpathbug"/, /".xml"/);
> myObject.save(tmp);
> myObject= MyXMLType.Factory.parse(tmp);
> 
> 
> I know this is overkill, but I am pretty sure that
> they will find a patch asap.
> 
> jc
> 
> PS: you should have at least saxon8, xbean_xpath and xbean in your
> classpath
> this sis my classpath
> <path id="project.classpath">
> <pathelement location="bin"/>
> <pathelement
> location="E:/eclipse/plugins/org.jboss.ide.eclipse.jdt.test.core_1.3.30/
> lib/junit-3.8.1/junit.jar"/>
> <pathelement location="lib/xmltypes.jar"/>
> <pathelement location="lib/jsr173_api.jar"/>
> <pathelement location="lib/jsr173_ri.jar"/>
> <pathelement location="lib/resolver.jar"/>
> <pathelement location="lib/xbean.jar"/>
> <pathelement location="lib/xcresolver.zip"/>
> <pathelement location="lib/xmlpublic.jar"/>
> <pathelement location="lib/saxon8.jar"/>
> <pathelement location="lib/xbean_xpath.jar"/>
> </path>
> 
> Zetterman, Erik wrote:
> 
> 
> 
> > Hi
> > 
> > I would like to use xpath queries with xbeans 2.0 but I can't use
> > complex queries.
> > 
> > I read somewhere that I should use Saxon but where can I get the right
> > 
> > 
> 
> 
> 
> > .jar-file and should I place it before or after xbean.jar in
> > classpath? Any (other) configurations needed?
> > 
> > Thnx, Erik.
> > 
> > 
> > 
> 
> 
> 
> 


--
Jean-Christophe Pazzaglia, PhD <Jean-Christophe.Pazzaglia@eurecom.fr>
Corporate communications
Tel: (+33) 4-93-00-26-78
PGP Key available : http://www.eurecom.fr/~pazzagli/publickey.pgp
--
Institut Eurécom - Office 029
http://www.eurecom.fr/
2229 Route des Crêtes
BP 193
06904 Sophia Antipolis, France
Fax: (+33) 4-93-00-26-27
















---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


[Attachment #3 (text/html)]

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>

<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>RE: xpath </TITLE>
</HEAD>
<BODY>
<DIV id=idOWAReplyText53721 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Hi</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>and thanks.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>It's great there is an ant task for this 
but I'm thinking it would be even better, and make xbeans more "usage-friendly", 
to package the jars needed for xpath to work either:</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>a) in the xbeans zip file</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>or </FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>b) in a separate jar/zip found at the 
download site(s)</FONT></DIV><FONT face=Arial size=2></FONT></DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>Regards, Erik</DIV>
<DIV dir=ltr>
<DIV dir=ltr><BR></DIV>
<DIV dir=ltr>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr><FONT face=Tahoma size=2><B>Från:</B> Rajiv Balachandran 
[mailto:rbalacha@bea.com]<BR><B>Skickat:</B> fr 2005-02-25 18:52<BR><B>Till:</B> 
user@xmlbeans.apache.org<BR><B>Ämne:</B> RE: xpath <BR></FONT><BR></DIV></DIV>
<DIV>
<P><FONT size=2>Hi,<BR><BR>The ant build script downloads the Saxon jar from the 
following url:<BR><A 
href="http://voxel.dl.sourceforge.net/sourceforge/saxon/saxonb8-1-1.zip">http://voxel.dl.sourceforge.net/sourceforge/saxon/saxonb8-1-1.zip</A><BR>The \
 zip contains the saxon8.jar.<BR><BR>Hope this 
helps.<BR><BR>-Rajiv<BR><BR><BR><BR>-----Original Message-----<BR>From: 
Jean-Christophe Pazzaglia [<A 
href="mailto:Jean-Christophe.Pazzaglia@eurecom.fr">mailto:Jean-Christophe.Pazzaglia@eurecom.fr</A>]<BR>Sent: \
 Friday, February 25, 2005 8:40 AM<BR>To: user@xmlbeans.apache.org<BR>Subject: 
Re: xpath<BR><BR><BR>I built it from the source and<BR>the jars are stored&nbsp; 
under the<BR>XMLBeansv2\trunk\build\lib<BR>after a 
ant<BR><BR>jc<BR><BR>&gt;Hi<BR>&gt;<BR>&gt;I am also quite interested in those 
jars, since we would like to try out<BR>&gt;xpath in the 2.0 
beta.<BR>&gt;<BR>&gt;In 1.0.3, xbean_xpath.jar and others (eg jaxen) were 
included in the<BR>&gt;zip-file, so what has happened this 
time?<BR>&gt;<BR>&gt;Susanna<BR>&gt;<BR>&gt;-----Original 
Message-----<BR>&gt;From: Zetterman, Erik [<A 
href="mailto:erik.zetterman@sogeti.se">mailto:erik.zetterman@sogeti.se</A>]<BR>&gt;Sent: \
 den 25 februari 2005 16:21<BR>&gt;To: user@xmlbeans.apache.org<BR>&gt;Subject: 
RE: xpath<BR>&gt;<BR>&gt;<BR>&gt;Hi<BR>&gt;And thanks for your quick 
reply<BR>&gt;<BR>&gt;I have another question, where can I get these jar-files? 
In the<BR>&gt;xbean.zip is only xbean.jar and jsr173_api.jar. I suspect I need 
at<BR>&gt;least saxon8.jar and 
xbean_xpath.jar.<BR>&gt;<BR>&gt;Erik<BR>&gt;<BR>&gt;-----Original 
Message-----<BR>&gt;From: Jean-Christophe Pazzaglia<BR>&gt;[<A 
href="mailto:Jean-Christophe.Pazzaglia@eurecom.fr">mailto:Jean-Christophe.Pazzaglia@eurecom.fr</A>]<BR>&gt;Sent: \
 den 25 februari 2005 3:39<BR>&gt;To: user@xmlbeans.apache.org<BR>&gt;Subject: 
Re: xpath<BR>&gt;<BR>&gt;Dear Erik and other XMLBeaners,<BR>&gt;<BR>&gt;I 
suspect that you encounter the bug referenced JIRA89 and<BR>&gt;after several 
attempts we (thanks to Yana) find out the reason<BR>&gt;(probably DOM 
related).<BR>&gt;<BR>&gt;There is an isssue using xpath query with data 
structure built<BR>&gt;directly on memoryt (but not while reading an existing 
xml from a<BR>&gt;file/stream).<BR>&gt;If you encounter this bug, you may be 
able to execute your xpath<BR>&gt;by saving your data as a file and rereading it 
(cf workaround)<BR>&gt;<BR>&gt;So the workaround is :<BR>&gt;<BR>&gt;MyXMLType 
myobject = ...;<BR>&gt;<BR>&gt;File tmp = File.createTempFile(/"xpathbug"/, 
/".xml"/);<BR>&gt;myObject.save(tmp);<BR>&gt;myObject= 
MyXMLType.Factory.parse(tmp);<BR>&gt;<BR>&gt;<BR>&gt;I know this is overkill, 
but I am pretty sure that<BR>&gt;they will find a patch 
asap.<BR>&gt;<BR>&gt;jc<BR>&gt;<BR>&gt;PS: you should have at least saxon8, 
xbean_xpath and xbean in your<BR>&gt;classpath<BR>&gt;this sis my 
classpath<BR>&gt;&lt;path id="project.classpath"&gt;<BR>&gt;&lt;pathelement 
location="bin"/&gt;<BR>&gt;&lt;pathelement<BR>&gt;location="E:/eclipse/plugins/org.jbo \
ss.ide.eclipse.jdt.test.core_1.3.30/<BR>&gt;lib/junit-3.8.1/junit.jar"/&gt;<BR>&gt;&lt;pathelement \
 location="lib/xmltypes.jar"/&gt;<BR>&gt;&lt;pathelement 
location="lib/jsr173_api.jar"/&gt;<BR>&gt;&lt;pathelement 
location="lib/jsr173_ri.jar"/&gt;<BR>&gt;&lt;pathelement 
location="lib/resolver.jar"/&gt;<BR>&gt;&lt;pathelement 
location="lib/xbean.jar"/&gt;<BR>&gt;&lt;pathelement 
location="lib/xcresolver.zip"/&gt;<BR>&gt;&lt;pathelement 
location="lib/xmlpublic.jar"/&gt;<BR>&gt;&lt;pathelement 
location="lib/saxon8.jar"/&gt;<BR>&gt;&lt;pathelement 
location="lib/xbean_xpath.jar"/&gt;<BR>&gt;&lt;/path&gt;<BR>&gt;<BR>&gt;Zetterman, 
Erik wrote:<BR>&gt;<BR>&gt;&nbsp;<BR>&gt;<BR>&gt;&gt;Hi<BR>&gt;&gt;<BR>&gt;&gt;I 
would like to use xpath queries with xbeans 2.0 but I can't 
use<BR>&gt;&gt;complex queries.<BR>&gt;&gt;<BR>&gt;&gt;I read somewhere that I 
should use Saxon but where can I get the 
right<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;<BR>&gt;&gt;<BR>&gt;<BR>&gt;&nbsp;<BR>&gt;<BR>&gt;&gt;.jar-file \
 and should I place it before or after xbean.jar in<BR>&gt;&gt;classpath? Any 
(other) configurations needed?<BR>&gt;&gt;<BR>&gt;&gt;Thnx, 
Erik.<BR>&gt;&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;<BR>&gt;&gt;<BR>&gt;<BR>&gt;<BR>&gt;&nbsp;<BR>&gt;<BR><BR><BR>--<BR>Jean-Christophe \
 Pazzaglia, PhD &lt;Jean-Christophe.Pazzaglia@eurecom.fr&gt;<BR>Corporate 
communications<BR>Tel: (+33) 4-93-00-26-78<BR>PGP Key available : <A 
href="http://www.eurecom.fr/~pazzagli/publickey.pgp">http://www.eurecom.fr/~pazzagli/publickey.pgp</A><BR>--<BR>Institut \
 Eurécom - Office 029<BR><A 
href="http://www.eurecom.fr/">http://www.eurecom.fr/</A><BR>2229 Route des 
Crêtes<BR>BP 193<BR>06904 Sophia Antipolis, France<BR>Fax: (+33) 
4-93-00-26-27<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>---------------------------------------------------------------------<BR>To \
 unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org<BR>For additional 
commands, e-mail: 
user-help@xmlbeans.apache.org<BR><BR><BR><BR><BR>---------------------------------------------------------------------<BR>To \
 unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org<BR>For additional 
commands, e-mail: 
user-help@xmlbeans.apache.org<BR><BR></FONT></P></DIV>

</BODY>
</HTML>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic