Actually, I need to make a correction:
Saxon < 8.7.1 will still work, because the method that XMLBeans is calling now did in fact exist, in 8.6.1 at least. So people who build from source and use Saxon, don't need to redownload it.
 
Thanks,
Radu


From: Radu Preotiuc-Pietro
Sent: Tuesday, October 31, 2006 10:57 AM
To: dev@xmlbeans.apache.org; [EMAIL PROTECTED]
Subject: RE: saxon 8.8 support

I have checked this in at revision 469605. Thanks for the patch!
 
However, I wasn't able to also upgrade Saxon to version 8.8, at least not in the build script.
 
I am getting the following exception, for example when running the XQueryXPath sample (cd samples/XQueryXPath; ant build run):
 
java.lang.ClassCastException
at net.sf.saxon.value.Value.convertToBestFit(Value.java:943)
at net.sf.saxon.value.Value.convertJavaObjectToXPath(Value.java:762)
at net.sf.saxon.instruct.Bindery.useGlobalParameter(Bindery.java:104)
at net.sf.saxon.instruct.GlobalParam.evaluateVariable(GlobalParam.java:37)
at net.sf.saxon.expr.VariableReference.evaluateVariable(VariableReference.java:313)
at net.sf.saxon.expr.VariableReference.iterate(VariableReference.java:269)
at net.sf.saxon.expr.ItemChecker.iterate(ItemChecker.java:120)
at net.sf.saxon.expr.PathExpression.iterate(PathExpression.java:798)
at net.sf.saxon.sort.DocumentSorter.iterate(DocumentSorter.java:68)
at net.sf.saxon.expr.ForExpression.iterate(ForExpression.java:489)
at net.sf.saxon.expr.LetExpression.iterate(LetExpression.java:171)
at net.sf.saxon.query.XQueryExpression.iterator(XQueryExpression.java:223)
at net.sf.saxon.query.XQueryExpression.evaluate(XQueryExpression.java:140)
at org.apache.xmlbeans.impl.xquery.saxon.XBeansXQuery.execQuery(XBeansXQuery.java:104)
So I would say that right now Saxon 8.7.3 is the reccomended version to use with XMLBeans. Saxon 8.8 works too, but you may run into the exception above. Anything < 8.7.1 will not work anymore (because Saxon deleted one method that XMLBeans was calling).
 
Radu


From: Dan Kearns [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 19, 2006 5:56 PM
To: dev@xmlbeans.apache.org
Subject: saxon 8.8 support

Howdy folks,

I ran into the same need for saxon8.8 as is documented in:
http://issues.apache.org/jira/browse/XMLBEANS-287

From the saxon release notes, is looks like anything > 8.3 saxon is probably broken.

Attached are the necessary changes working, if not well tested, against the svn trunk @465816. It would not be backwards compatible with <8.3 saxon versions since the dom-wrapper class didn't exist.

I'd appreciate it if somebody could open the enhancement request. (in my case, it is needed for interop with xmldb)

regards,
-d

M      src/xpath_xquery/org/apache/xmlbeans/impl/xpath/saxon/XBeansXPath.java
M      src/xpath_xquery/org/apache/xmlbeans/impl/xquery/saxon/XBeansXQuery.java
M      build.xml





Reply via email to