What does your xquery look like ?  (queryString) ?
----- Original Message -----
From: Erik Rens
To: Mailing list for the SAXON XSLT and XQuery processor
Sent: Wednesday, April 01, 2009 7:02 AM
Subject: Re: [saxon] Fwd: Xpath 2.0 sequences and Saxon examples problems.

Thanks for the tips. I guess I am on the right way but i still cant get work. I parsed my string with a XMLInputFactory to a XQItem.
XQDataSource ds = new SaxonXQDataSource();
XQConnection conn = ds.getConnection();
StringReader xs = new StringReader(rt);
XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(xs);
XQItem doc = conn.createItemFromDocument(reader, null);
XQExpression expression = conn.createExpression();
I used the same xml structure and expression from the previous post. Then I execute the expression:
XQSequence results = expression.executeQuery(queryString);
.println(results.getSequenceAsString(new Properties()));
//results.writeSequence(System.out, null);
I try to print my result but I get an Error:
Error on line 2
java.io.FileNotFoundException: C:\Stage\Projects\DA\MDF\Empire BurlesqueBobDylanUSAColumbia10.901985Hide your heartBonnie TylerUKCBS Records9.901988 (The systemcannot find the file specified)javax.xml.xquery.XQException: java.io.FileNotFoundException: C:\Stage\Projects\DA\MDF\Empire BurlesqueBob DylanUSAColumbia10.901985Hide your heartBonnie TylerUKCBS Records9.901988 (The system cannot find the file specified)at net.sf.saxon.xqj.SaxonXQPreparedExpression.executeQuery(SaxonXQPreparedExpression.java:95)
It doens't make sense to me. Can someone help me to get it work? When I debug my code it will stop on the executeQuery method.


saxon-help mailing list archived at http://saxon.markmail.org/