Do you have xbean_xpath.jar on your class path? This provides "the glue" between Saxon and XMLBeans. (The jar can be downloaded from the website, or should be in your lib directory if you're building from source)
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 30, 2005 7:20 AM To: [email protected] Subject: saxon use for xpath support on XmlObject Hello, I am quite new with XmlBeans. I use xmlbeans 2.0.0-beta1 with JDK 1.5.0_03 under eclipse 3.0.2 I imported some Jar files from saxon b 8.1.1 in my eclipse project (saxon8.jar, *-jdom.jar and *-sql.jar). I still get errors like : java.lang.RuntimeException: Path too complex for xmlbeans: declare namespace a='dataRepository.project.foo.com' $this/a:racine/a:regroupement[1] after calling data.selectPath ("declare namespace a='dataRepository.project.foo.com' $this/a:racine/a:regroupement[1]") where data is an instance of RacineDocument (racine is my only root element, RacineDocument is the whole document), where "[...] $this/a:racine/a:regroupement" return the wanted elements . I have just tryed to use selectPath on an XmlCursor, instead of XmlObject : XmlCursor tmp = data.newCursor(); tmp.selectPath("declare namespace a='dataRepository.project.foo.com' $this/a:racine/a:regroupement[1]"); XmlObject []rval = new XmlObject[tmp.getSelectionCount()]; rval[0]=tmp.getObject(); for (int i=1; tmp.hasNextSelection(); i++) { tmp.toNextSelection(); rval[i]=tmp.getObject(); } return rval; wich throws the same error. I also tryed data.getRacine().selectPath(theSameRequest) to obtain the same error. After importing saxon's jar files in the eclipse project, in the ant build, anywhere I could, and after cleaning and rebuilding everything, I am running out of ideas to get that saxon active. The only instruction I found is to import saxon's jar in the classpath which is done. What I am missing ? Thank for any answer, best regards, Nicolas. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

