One possibility that I've seen cause this kind of thing is picking up Xalan from the class path, when you mix Xalan and Saxon code strange things happen. Try specifying the Jar file explicitly on the command line,
 
java -cp c:\dir\saxon7.jar net.sf.saxon.Query ...
 
The IE failure is because it's trying to execute an XSLT 2.0 stylesheet with an XSLT 1.0 processor, which doesn't work. This is unrelated to your problems.
 
Michael Kay
 
-----Original Message-----
From: saxon-help-admin@lists.sourceforge.net [mailto:saxon-help-admin@lists.sourceforge.net] On Behalf Of Weimin He
Sent: 28 October 2003 19:29
To: saxon-help@lists.sourceforge.net
Subject: RE: [saxon] a question about XQuery

Hi
 
I didn't change the files issued initially and it didn't work.
 
I have degugged the program. It seems that the error message was caused by the exception:
 
TransformerFactoryConfigurationError

at the end of doMain( ) function
 
So I thought maybe it was caused by the books.xsl declared in books.xml an I delete the declaration and tried it.
 
But it still didn't work.
 
Another problem is I can't open books.xml using IE.  I got the following:
 

'current-dateTime' is not a valid XSLT or XPath function. -->current-dateTime()<--

Thanks for your time
 
Weimin

Michael Kay <mhk@mhk.me.uk> wrote:
You should only get this message after seeing more specific error messages, so there's something funny going on here. Some kind of configuration problem, I should think, so it may be difficult to reproduce. Did you change the files from those issued? What happens if you use the -t option?
 
Michael Kay
-----Original Message-----
From: saxon-help-admin@lists.sourceforge.net [mailto:saxon-help-admin@lists.sourceforge.net] On Behalf Of Weimin He
Sent: 28 October 2003 15:18
To: saxon-help@lists.sourceforge.net
Subject: [saxon] a question about XQuery

Hi guys,
 
I am a learner in Saxon.
 
When I try to test some example XQuery using the following command line:
 
java net.sf.saxon.Query -s books.xml books.xq
 
I got the following error message:
 
Query processing failed
Does anyone know the reason and explain it for me?
 
I really appreciate that.
 
Weimin
 


Do you Yahoo!?
Exclusive Video Premiere - Britney Spears


Do you Yahoo!?
Exclusive Video Premiere - Britney Spears