[prev in list] [next in list] [prev in thread] [next in thread]
List: xmlbeans-dev
Subject: RE: saxon 8.8 support
From: "Radu Preotiuc-Pietro" <radup () bea ! com>
Date: 2006-10-31 19:28:32
Message-ID: 99479F4D39C9244F8E17E688193A3DD8FCCB3E () repbex02 ! amer ! bea ! com
[Download RAW message or body]
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; dan@thekearns.org
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.j
ava: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(XBeansXQuer
y.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:dan.kearns@gmail.com]
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
[Attachment #3 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=594080819-31102006><FONT face=Arial
color=#0000ff size=2>Actually, I need to make a correction:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=594080819-31102006><FONT face=Arial
color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=594080819-31102006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=594080819-31102006><FONT face=Arial
color=#0000ff size=2>Thanks,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=594080819-31102006><FONT face=Arial
color=#0000ff size=2>Radu</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Radu Preotiuc-Pietro <BR><B>Sent:</B>
Tuesday, October 31, 2006 10:57 AM<BR><B>To:</B> dev@xmlbeans.apache.org;
dan@thekearns.org<BR><B>Subject:</B> RE: saxon 8.8 support<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=583033106-25102006><FONT face=Arial size=2>I
have checked this in at revision 469605. Thanks for the
patch!</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=583033106-25102006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=583033106-25102006><FONT face=Arial
size=2>However, I wasn't able to also upgrade Saxon to version 8.8, at least not
in the build script.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=583033106-25102006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=583033106-25102006><FONT face=Arial size=2>I
am getting the following exception, for example when running the XQueryXPath
sample (cd samples/XQueryXPath; ant build run):</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=583033106-25102006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left>java.lang.ClassCastException<BR>at
net.sf.saxon.value.Value.convertToBestFit(Value.java:943)<BR>at
net.sf.saxon.value.Value.convertJavaObjectToXPath(Value.java:762)<BR>at
net.sf.saxon.instruct.Bindery.useGlobalParameter(Bindery.java:104)<BR>at
net.sf.saxon.instruct.GlobalParam.evaluateVariable(GlobalParam.java:37)<BR>at
net.sf.saxon.expr.VariableReference.evaluateVariable(VariableReference.java:313)<BR>at \
net.sf.saxon.expr.VariableReference.iterate(VariableReference.java:269)<BR>at
net.sf.saxon.expr.ItemChecker.iterate(ItemChecker.java:120)<BR>at
net.sf.saxon.expr.PathExpression.iterate(PathExpression.java:798)<BR>at
net.sf.saxon.sort.DocumentSorter.iterate(DocumentSorter.java:68)<BR>at
net.sf.saxon.expr.ForExpression.iterate(ForExpression.java:489)<BR>at
net.sf.saxon.expr.LetExpression.iterate(LetExpression.java:171)<BR>at
net.sf.saxon.query.XQueryExpression.iterator(XQueryExpression.java:223)<BR>at
net.sf.saxon.query.XQueryExpression.evaluate(XQueryExpression.java:140)<BR>at
org.apache.xmlbeans.impl.xquery.saxon.XBeansXQuery.execQuery(XBeansXQuery.java:104)<BR></DIV>
<DIV dir=ltr align=left><SPAN class=583033106-25102006></SPAN><FONT
face=Arial><FONT size=2>S<SPAN class=583033106-25102006>o 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).</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=583033106-25102006></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=583033106-25102006>Radu</SPAN></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2></FONT><BR></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Dan Kearns [mailto:dan.kearns@gmail.com]
<BR><B>Sent:</B> Thursday, October 19, 2006 5:56 PM<BR><B>To:</B>
dev@xmlbeans.apache.org<BR><B>Subject:</B> saxon 8.8
support<BR></FONT><BR></DIV>
<DIV></DIV>Howdy folks,<BR><BR>I ran into the same need for saxon8.8 as is
documented in:<BR><A
href="http://issues.apache.org/jira/browse/XMLBEANS-287">http://issues.apache.org/jira/browse/XMLBEANS-287</A><BR><BR>From \
the saxon release notes, is looks like anything > 8.3 saxon is probably
broken.<BR><BR>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. <BR><BR>I'd appreciate
it if somebody could open the enhancement request. (in my case, it is needed for
interop with xmldb)<BR><BR>regards,<BR>-d<BR><BR>M
src/xpath_xquery/org/apache/xmlbeans/impl/xpath/saxon/XBeansXPath.java
<BR>M
src/xpath_xquery/org/apache/xmlbeans/impl/xquery/saxon/XBeansXQuery.java<BR>M \
build.xml<BR><BR><BR><BR><BR><BR></BODY></HTML>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic