You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Wing Yew Poon (JIRA)" <xm...@xml.apache.org> on 2006/06/11 01:21:31 UTC
[jira] Created: (XMLBEANS-275) XQuery with latest from svn + Saxon
8.6.1 gives different result from 2.1.0 + Saxon 8.1.1
XQuery with latest from svn + Saxon 8.6.1 gives different result from 2.1.0 + Saxon 8.1.1
-----------------------------------------------------------------------------------------
Key: XMLBEANS-275
URL: http://issues.apache.org/jira/browse/XMLBEANS-275
Project: XMLBeans
Type: Bug
Components: XPath
Versions: unspecified
Environment: Windows XP
Reporter: Wing Yew Poon
As of svn revision 378309, XMLBeans works with Saxon 8.6.1. Before that, it only works with Saxon 8.1.1.
I ran the XQueryXPath sample (ant run) using a 2.1.0 release with Saxon 8.1.1 jar in the classpath, and then using the latest from svn with Saxon 8.6.1 jars in the classpath.
The following XQuery led to different results:
// The expression: Get the <zip> elements and return them as children
// of a new <zip-list> element.
String queryExpression =
"let $e := $this/xq:employees " +
"return " +
"<zip-list> " +
"{for $z in $e/xq:employee/xq:address/xq:zip " +
"return $z} " +
"</zip-list>";
XMLBeans 2.1.0 + Saxon 8.1.1:
[java] Running ExecQuery.selectZipsNewDocCursor
[java] The query results:
[java] <zip-list xmlns:emp="http://xmlbeans.apache.org/samples/xquery/employees">
[java] <emp:zip>98115</emp:zip>
[java] <emp:zip>98052</emp:zip>
[java] <emp:zip>97125</emp:zip>
[java] <emp:zip>97303</emp:zip>
[java] <emp:zip>98115</emp:zip>
[java] <emp:zip>98052</emp:zip>
[java] </zip-list>
Latest svn + Saxon 8.6.1:
[java] Running ExecQuery.selectZipsNewDocCursor
[java] The query results:
[java] <xml-fragment>net.sf.saxon.tinytree.TinyElementImpl@1e152c5</xml-fragment>
The former are the expected results. They are also the same results obtained when using the BEA XQuery engine (against both XMLBeans 2.1.0 and latest svn).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Resolved: (XMLBEANS-275) XQuery with latest from svn + Saxon
8.6.1 gives different result from 2.1.0 + Saxon 8.1.1
Posted by "Radu Preotiuc-Pietro (JIRA)" <xm...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XMLBEANS-275?page=all ]
Radu Preotiuc-Pietro resolved XMLBEANS-275.
-------------------------------------------
Fix Version/s: Version 2.2.1
Resolution: Fixed
Fix @ SVN revision 469605.
> XQuery with latest from svn + Saxon 8.6.1 gives different result from 2.1.0 + Saxon 8.1.1
> -----------------------------------------------------------------------------------------
>
> Key: XMLBEANS-275
> URL: http://issues.apache.org/jira/browse/XMLBEANS-275
> Project: XMLBeans
> Issue Type: Bug
> Components: XPath
> Affects Versions: unspecified, Version 2.2
> Environment: Windows XP
> Reporter: Wing Yew Poon
> Fix For: Version 2.2.1
>
>
> As of svn revision 378309, XMLBeans works with Saxon 8.6.1. Before that, it only works with Saxon 8.1.1.
> I ran the XQueryXPath sample (ant run) using a 2.1.0 release with Saxon 8.1.1 jar in the classpath, and then using the latest from svn with Saxon 8.6.1 jars in the classpath.
> The following XQuery led to different results:
> // The expression: Get the <zip> elements and return them as children
> // of a new <zip-list> element.
> String queryExpression =
> "let $e := $this/xq:employees " +
> "return " +
> "<zip-list> " +
> "{for $z in $e/xq:employee/xq:address/xq:zip " +
> "return $z} " +
> "</zip-list>";
> XMLBeans 2.1.0 + Saxon 8.1.1:
> [java] Running ExecQuery.selectZipsNewDocCursor
> [java] The query results:
> [java] <zip-list xmlns:emp="http://xmlbeans.apache.org/samples/xquery/employees">
> [java] <emp:zip>98115</emp:zip>
> [java] <emp:zip>98052</emp:zip>
> [java] <emp:zip>97125</emp:zip>
> [java] <emp:zip>97303</emp:zip>
> [java] <emp:zip>98115</emp:zip>
> [java] <emp:zip>98052</emp:zip>
> [java] </zip-list>
> Latest svn + Saxon 8.6.1:
> [java] Running ExecQuery.selectZipsNewDocCursor
> [java] The query results:
> [java] <xml-fragment>net.sf.saxon.tinytree.TinyElementImpl@1e152c5</xml-fragment>
> The former are the expected results. They are also the same results obtained when using the BEA XQuery engine (against both XMLBeans 2.1.0 and latest svn).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Commented: (XMLBEANS-275) XQuery with latest from svn +
Saxon 8.6.1 gives different result from 2.1.0 + Saxon 8.1.1
Posted by "Radu Preotiuc-Pietro (JIRA)" <xm...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XMLBEANS-275?page=comments#action_12431659 ]
Radu Preotiuc-Pietro commented on XMLBEANS-275:
-----------------------------------------------
Actually, I have some updates on this.
I have investigated it and traced it back to a bug in Saxon (breaking backwards compatibility between two minor versions).
Now, I meant to open a bug on Saxon, but in order to do that I need a SourceForge account and this is where I got stuck, I can't seem to be able to register.
I'll keep trying and post my progress here.
> XQuery with latest from svn + Saxon 8.6.1 gives different result from 2.1.0 + Saxon 8.1.1
> -----------------------------------------------------------------------------------------
>
> Key: XMLBEANS-275
> URL: http://issues.apache.org/jira/browse/XMLBEANS-275
> Project: XMLBeans
> Issue Type: Bug
> Components: XPath
> Affects Versions: unspecified, Version 2.2
> Environment: Windows XP
> Reporter: Wing Yew Poon
>
> As of svn revision 378309, XMLBeans works with Saxon 8.6.1. Before that, it only works with Saxon 8.1.1.
> I ran the XQueryXPath sample (ant run) using a 2.1.0 release with Saxon 8.1.1 jar in the classpath, and then using the latest from svn with Saxon 8.6.1 jars in the classpath.
> The following XQuery led to different results:
> // The expression: Get the <zip> elements and return them as children
> // of a new <zip-list> element.
> String queryExpression =
> "let $e := $this/xq:employees " +
> "return " +
> "<zip-list> " +
> "{for $z in $e/xq:employee/xq:address/xq:zip " +
> "return $z} " +
> "</zip-list>";
> XMLBeans 2.1.0 + Saxon 8.1.1:
> [java] Running ExecQuery.selectZipsNewDocCursor
> [java] The query results:
> [java] <zip-list xmlns:emp="http://xmlbeans.apache.org/samples/xquery/employees">
> [java] <emp:zip>98115</emp:zip>
> [java] <emp:zip>98052</emp:zip>
> [java] <emp:zip>97125</emp:zip>
> [java] <emp:zip>97303</emp:zip>
> [java] <emp:zip>98115</emp:zip>
> [java] <emp:zip>98052</emp:zip>
> [java] </zip-list>
> Latest svn + Saxon 8.6.1:
> [java] Running ExecQuery.selectZipsNewDocCursor
> [java] The query results:
> [java] <xml-fragment>net.sf.saxon.tinytree.TinyElementImpl@1e152c5</xml-fragment>
> The former are the expected results. They are also the same results obtained when using the BEA XQuery engine (against both XMLBeans 2.1.0 and latest svn).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Updated: (XMLBEANS-275) XQuery with latest from svn + Saxon
8.6.1 gives different result from 2.1.0 + Saxon 8.1.1
Posted by "Yogesh L. Simmhan (JIRA)" <xm...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XMLBEANS-275?page=all ]
Yogesh L. Simmhan updated XMLBEANS-275:
---------------------------------------
Affects Version/s: Version 2.2
I see this problem in v2.2.0 release also.
> XQuery with latest from svn + Saxon 8.6.1 gives different result from 2.1.0 + Saxon 8.1.1
> -----------------------------------------------------------------------------------------
>
> Key: XMLBEANS-275
> URL: http://issues.apache.org/jira/browse/XMLBEANS-275
> Project: XMLBeans
> Issue Type: Bug
> Components: XPath
> Affects Versions: unspecified, Version 2.2
> Environment: Windows XP
> Reporter: Wing Yew Poon
>
> As of svn revision 378309, XMLBeans works with Saxon 8.6.1. Before that, it only works with Saxon 8.1.1.
> I ran the XQueryXPath sample (ant run) using a 2.1.0 release with Saxon 8.1.1 jar in the classpath, and then using the latest from svn with Saxon 8.6.1 jars in the classpath.
> The following XQuery led to different results:
> // The expression: Get the <zip> elements and return them as children
> // of a new <zip-list> element.
> String queryExpression =
> "let $e := $this/xq:employees " +
> "return " +
> "<zip-list> " +
> "{for $z in $e/xq:employee/xq:address/xq:zip " +
> "return $z} " +
> "</zip-list>";
> XMLBeans 2.1.0 + Saxon 8.1.1:
> [java] Running ExecQuery.selectZipsNewDocCursor
> [java] The query results:
> [java] <zip-list xmlns:emp="http://xmlbeans.apache.org/samples/xquery/employees">
> [java] <emp:zip>98115</emp:zip>
> [java] <emp:zip>98052</emp:zip>
> [java] <emp:zip>97125</emp:zip>
> [java] <emp:zip>97303</emp:zip>
> [java] <emp:zip>98115</emp:zip>
> [java] <emp:zip>98052</emp:zip>
> [java] </zip-list>
> Latest svn + Saxon 8.6.1:
> [java] Running ExecQuery.selectZipsNewDocCursor
> [java] The query results:
> [java] <xml-fragment>net.sf.saxon.tinytree.TinyElementImpl@1e152c5</xml-fragment>
> The former are the expected results. They are also the same results obtained when using the BEA XQuery engine (against both XMLBeans 2.1.0 and latest svn).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org