You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Andrew Mould <an...@softsell.com> on 2004/08/19 23:27:58 UTC

Searching the mailing lists (Was RE: Xquery)

The search function on the mailing lists is a little useless... Best
approach I found is to list all titles on one page then do a browser search
against the titles.

Is there anything that can be done about this? A search engine that actually
worked would be of great benefit to everyone since it would improve the
ability to research known issues, and so reduce the likelihood of asking
previously-answered questions.

- Andrew

> -----Original Message-----
> From: Davis, Larry W [mailto:larry.w.davis@eds.com] 
> Sent: Wednesday, August 18, 2004 10:06 AM
> To: xmlbeans-user@xml.apache.org
> Subject: RE: XQuery
> 
> 
> Thank you!  I see the threads in June and July.  For some 
> reason a search for "xpath" on the developer list in 
> eyebrowse didn't produce any results.  
> 
> Cheers,
> Larry
> 
> -----Original Message-----
> From: Yana Kadiyska [mailto:ykadiysk@bea.com] 
> Sent: Wednesday, August 18, 2004 10:17
> To: xmlbeans-user@xml.apache.org
> Subject: RE: XQuery
> 
> 
> Namespace support is currently not working in the Apache 
> version of XMLBeans...which is why it works with Weblogic's 
> implementation but not with the Apache one. The problem and 
> possible solutions were discussed on the mailing lists in 
> June or July(sorry, can't remember more precisely...could 
> have been the dev list too)...I believe the Apache version is 
> going to be fixed (sooner than later).
> 
> If you wish your query to work now, get rid of the namespaces 
> if possible.
> 
> Yana
> 
> -----Original Message-----
> From: Davis, Larry W [mailto:larry.w.davis@eds.com]
> Sent: Wednesday, August 18, 2004 7:52 AM
> To: xmlbeans-user@xml.apache.org
> Subject: RE: XQuery
> 
> 
> Hmmm.  I have xbean_xpath.jar and jaxen-1.1-beta-2.jar in my 
> classpath. Would you mind providing your example?  Also, what 
> version of Xerces are you using?  I'm using Xerces 2.6.2.
> 
> I've run this test through WebLogic's implementation of 
> XMLBeans successfully but to get the expected results I had 
> to ensure that the namespaces matched exactly between the 
> schema and xml.
> 
> Like you I searched through the archives without much success.
> 
> Thanks,
> Larry
> 
> -----Original Message-----
> From: Luke Noel-Storr [mailto:lukens@dsl.pipex.com] 
> Sent: Wednesday, August 18, 2004 08:26
> To: xmlbeans-user@xml.apache.org
> Subject: Re: XQuery
> 
> 
> Hi,
> 
> I had the same problem; putting xbean_xpath.jar and 
> jaxen-1.1-beta-2.jar 
> in my classpath seemed to help.
> 
> I say seemed to help because it stopped the error, but I couldn't get 
> the results I wanted from the query.
> 
> There are a few posts about this in the archive, but none that really 
> helped me that much.
> 
> 
> Cheers
> 
> Luke.
> -----
> 
> Davis, Larry W wrote:
> 
> >Hello,
> >
> >I would like to use XQuery in my application but have been unable to 
> >get even the purchase order example to work.  I'm using XMLBeans 
> >version 1.0.3.
> >
> >I'm getting the following exception...
> >
> >java.lang.UnsupportedOperationException: This query is too 
> complex to 
> >be processed.
> >	at
> >org.apache.xmlbeans.impl.store.XqrlDelegate.invoke(XqrlDelega
> te.java:70)
> >	at
> >org.apache.xmlbeans.impl.store.XqrlDelegate.compileQuery(Xqrl
> Delegate.j
> >ava:4
> >6)
> >	at
> >org.apache.xmlbeans.impl.store.Path.getCompiledQuery(Path.java:223)
> >	at org.apache.xmlbeans.impl.store.Path.getQuery(Path.java:203)
> >	at org.apache.xmlbeans.impl.store.Path.query(Path.java:236)
> >	at 
> org.apache.xmlbeans.impl.store.Cursor.execQuery(Cursor.java:2926)
> >	at 
> org.apache.xmlbeans.impl.store.Cursor.execQuery(Cursor.java:2932)
> >	at TestXpath.main(TestXpath.java:13)
> >
> >My test class is...
> >
> >import java.io.File;
> >import org.apache.xmlbeans.XmlCursor;
> >import org.openuri.easypo.PurchaseOrderDocument;
> >public class TestXpath {
> >    public static void main(String[] args) throws Exception {
> >        PurchaseOrderDocument doc = 
> >PurchaseOrderDocument.Factory.parse(new
> >File("schemas/easypo/easypo.xml"));
> >            String nsText = "declare namespace po = 
> >'http://openuri.org/easypo'";
> >            String pathText =
> "$this/po:purchase-order/po:line-item[po:price
> ><= 20.00]";
> >            String queryText = nsText + pathText;
> >            XmlCursor itemCursor = 
> doc.newCursor().execQuery(pathText);
> >            System.out.println(itemCursor.xmlText());
> >	}
> >}
> >	
> >The easypo.xml file is...
> >
> ><po:purchase-order xmlns:po="http://openuri.org/easypo">
> >    <po:customer>
> >        <po:name>Gladys Kravitz</po:name>
> >        <po:address>Anytown, PA</po:address>
> >    </po:customer>
> >    <po:date>2003-01-07T14:16:00-05:00</po:date>
> >    <po:line-item>
> >        <po:description>Burnham's Celestial Handbook, Vol
> 1</po:description>
> >        <po:per-unit-ounces>5</po:per-unit-ounces>
> >        <po:price>21.79</po:price>
> >        <po:quantity>2</po:quantity>
> >    </po:line-item>
> >    <po:line-item>
> >        <po:description>Burnham's Celestial Handbook, Vol
> 2</po:description>
> >        <po:per-unit-ounces>5</po:per-unit-ounces>
> >        <po:price>19.89</po:price>
> >        <po:quantity>2</po:quantity>
> >    </po:line-item>
> >    <po:shipper>
> >        <po:name>ZipShip</po:name>
> >        <po:per-ounce-rate>0.74</po:per-ounce-rate>
> >    </po:shipper>
> ></po:purchase-order>
> >
> >
> >My classpath is...
> >
> >lib/xbean.jar;lib/easypo.jar;lib/xbean_xpath.jar;lib/jaxen-1.
> 1-beta-2.j
> >ar
> >
> >I created the easypo.jar with the following Ant task...
> >
> ><project name="easypo" default="all" basedir=".">
> >	<taskdef name="xmlbean" 
> >classname="org.apache.xmlbeans.impl.tool.XMLBean"
> >classpath="lib/xbean.jar" />
> >	<property environment="env" />
> >	<property name="schema.file" 
> value="schemas/easypo/easypo.xsd" />
> >	<property name="jar.name" value="easypo" />
> >	<target name="compile-schema" description="compile the 
> schema for
> >XMLBeans">
> >		<xmlbean schema="${schema.file}"
> destfile="lib/${jar.name}.jar"
> >			classgendir="build/${jar.name}_bin"
> >srcgendir="build/${jar.name}_src"
> >			classpath="lib/xbean.jar"
> >		/>
> >	</target>
> ></project>
> >
> >Can you see the error I am making or provide a working example?
> >
> >Thank you,
> >
> >Larry Davis
> >mailto: larry.w.davis@eds.com
> >
> >- 
> ---------------------------------------------------------------------
> >To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
> >For additional commands, e-mail: xmlbeans-user-help@xml.apache.org 
> >Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/
> >
> >
> >  
> >
> 
> 
> - 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: 
> xmlbeans-user-help@xml.apache.org Apache XMLBeans Project -- 
> URL: http://xml.apache.org/xmlbeans/
> 
> - 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: 
> xmlbeans-user-help@xml.apache.org Apache XMLBeans Project -- 
> URL: http://xml.apache.org/xmlbeans/
> 
> 
> - 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: 
> xmlbeans-user-help@xml.apache.org Apache XMLBeans Project -- 
> URL: http://xml.apache.org/xmlbeans/
> 
> - 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: 
> xmlbeans-user-help@xml.apache.org Apache XMLBeans Project -- 
> URL: http://xml.apache.org/xmlbeans/
> 
> 
> 


- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/