As per documentation, saxon is required for XQuery. Am only using Xpath. To my understanding, I only need xbean_xpath.jar in addition to regular Jars to do some complex(like predicates,etc) Xpath processing.
-D --- Jacob Danner <[EMAIL PROTECTED]> wrote: > Do you have saxon8.jar in your classpath when > executing these xpath > statements? It doesn't look like thats the case. > The way XMLBeans handles xpath is to look to see if > it can handle the > statement internally, and then it looks for > available engines on the > classpath. It appears to fail when trying to find > Saxon. If you don't think > this is the case, can you post the whole stacktrace? > There is a blurb about Saxon on the website under > the 2.3 release news > http://xmlbeans.apache.org/ > > -jacobd > > On Jan 2, 2008 5:07 PM, dave <[EMAIL PROTECTED]> > wrote: > > > > > I was just trying to use count() funtion in a > simple > > Xpath expression and I get this RuntimeException : > > Exception in thread "main" > > java.lang.RuntimeException: Trying XBeans path > > engine... Trying XQRL... Trying Saxon... FAILED on > > declare namespace ns=.... > > > > I see numerous postings from others who had the > > similar issue and there are no responses > indicating > > any specific solution. Before I waste some more > time > > on this, I just wanted to know if it's even worth > > using XPath support in XmlBeans. > > > > Here's my env: > > xmlbeans 2.3.0 + all the latest Jars in > classpath. > > > > The expression having issue: > > "count($this/ns:root/ns:owners/ns:owner)" > > > > I also tried the following but has the similar > issue: > > "count(//ns:owners/ns:owner)" > > > > Tried getting all the owner elements (Still the > same > > issue): > > "$this//ns:owners/ns:owner" > > But this works: "$this/ns:root/ns:owners/ns:owner" > > > > any clues to get this simple crap working!! > > > > OR should I switch to Jdom for Xpath processing? > > > > -D ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]