File xmlbeans-2.1.0-XBeansXQuery.patch of Package xmlbeans

--- src/xpath_xquery/org/apache/xmlbeans/impl/xquery/saxon/XBeansXQuery.java.orig	2005-05-05 06:00:44.000000000 +0200
+++ src/xpath_xquery/org/apache/xmlbeans/impl/xquery/saxon/XBeansXQuery.java	2006-09-06 13:07:15.000000000 +0200
@@ -19,8 +19,8 @@
 import net.sf.saxon.query.DynamicQueryContext;
 import net.sf.saxon.query.StaticQueryContext;
 import net.sf.saxon.query.XQueryExpression;
-import net.sf.saxon.xpath.StaticError;
-import net.sf.saxon.xpath.XPathException;
+import net.sf.saxon.trans.StaticError;
+import net.sf.saxon.trans.XPathException;
 import org.apache.xmlbeans.XmlRuntimeException;
 import org.apache.xmlbeans.impl.store.SaxonXBeansDelegate;
 import org.w3c.dom.Node;
@@ -72,7 +72,7 @@
             dynamicContext.setContextNode(_stcContext.
                     buildDocument(new DOMSource(context_node)));
             dynamicContext.setParameter(_contextVar,
-                    dynamicContext.getContextNode());
+                    dynamicContext.getContextItem());
             return _xquery.evaluate(dynamicContext);
         }
         catch (StaticError e) {