Thank you Michael,

 

I figured it out.  It is working.  There are some typos in the example. If you are interested, I could mention that.

 

Regards,

Houman

 


From: saxon-help-admin@lists.sourceforge.net [mailto:saxon-help-admin@lists.sourceforge.net] On Behalf Of Michael Kay
Sent: 17 August 2005 11:39
To: saxon-help@lists.sourceforge.net
Subject: RE: [saxon] Saxon 8.5 - Where is QueryProcessor?

 

xquery here is a StaticQueryContext object. I'll update the examples to make this clearer. Meanwhile you may find the QueryAPIExamples.java program in the samples/java directory helpful.

 

Michael Kay

http://www.saxonica.com/

 


From: saxon-help-admin@lists.sourceforge.net [mailto:saxon-help-admin@lists.sourceforge.net] On Behalf Of Khorasani, Houman
Sent: 17 August 2005 11:18
To: saxon-help@lists.sourceforge.net
Subject: [saxon] Saxon 8.5 - Where is QueryProcessor?

Hello,

 

I have upgraded to the most recent Saxon 8.5.

 

The examples on the Saxon site show a variable called xquery:

 

XQueryExpression exp = xquery.compileQuery("//book/title");

 

I was thinking to produce this variable like this in order to test the examples above:

 

            Configuration config = new Configuration();

            config.setHostLanguage(Configuration.XQUERY);

 

            StaticQueryContext staticContext = new StaticQueryContext(config);

            QueryProcessor xquery = new QueryProcessor(staticContext);

 

 

But the QueryProcessor under the net.sf.saxon.query.* seems to be deprived, correct?

 

How do I do that now?

 

Thanks

Houman