xquery prolog in search.jsp

Hi all,
I would like to modify “querySearch” variable in search.jsp because I need to put in prolog:

declare default collation “uri

This xquery modified works fine with the Tamino Interactive Interface but if I use this xquery inside a search.jsp I get the following:

[color=“darkblue”]!Error!
An error occurred in the application program. Please report the following problem to your webmaster.
Error message: Exception when executing query : declare default collation ‘collation?language=en;strength=secondary’ for $x in input()/Authority where $x/author=‘a.a.’ return $x sort by(author[@rif=‘aut’],author[@rif=‘aut’]/@title,author[@rif=‘aut’]/@date,author[@rif=‘aut’]/@formal,author[@rif=‘aut’]/@type,author[@rif=‘aut’]/@rif) .
Help message: Based on the query parameters X-Application created a query string. But, this string was not accepted by Tamino. Look at the message of the stack trace to find the reason of the problem.
Exception id: 157
Exception Type: DesignException
Stacktrace:

XException: id = 215 arg[0] = com.softwareag.xtools.xapplication.plugin.StandardWorkspacePlugin.xqueryDocuments arg[1] = xquery
Nested Exception (com.softwareag.tamino.db.api.common.TAccessFailureException, tag: Name: JavaTaminoAPI_4_1_2_41 ) stacktrace:

Tamino access failure (INOXQE6352, XQuery parsing error, Syntax Error at line 1, column 699: found “default” when expecting any of: “or”, “and”, “div”, “mod”, " *", “intersect”, “union”, “except”, “/”, “//”, “=”, “!=”, “<=”, “>=”, “eq”, “ne”, “gt”, “ge”, “lt”, “le”, "< ", “>”, “-”, “+”, “=>”, “|”, “(”, “[”, “)”, “,”, “sort”, “stable”)
at com.softwareag.tamino.db.api.accessor.TAccessFailureVerifier.newAccessFailureException(TAccessFailureVerifier.java:126)
at com.softwareag.tamino.db.api.accessor.TAccessFailureVerifier.verify(TAccessFailureVerifier.java:113)
at com.softwareag.tamino.db.api.accessor.TAccessFailureVerifier.verifyXQueryResponse(TAccessFailureVerifier.java:80)
at com.softwareag.tamino.db.api.accessor.TXMLObjectAccessorImpl.xquery(TXMLObjectAccessorImpl.java:364)
at com.softwareag.xtools.xapplication.store.TaminoStoreV4.xquery(TaminoStoreV4.java:824)
at com.softwareag.xtools.xapplication.businessdocument.AnchorCursor.load(AnchorCursor.java:353)
at com.softwareag.xtools.xapplication.businessdocument.AnchorCursor.load(AnchorCursor.java:343)
at com.softwareag.xtools.xapplication.businessdocument.AnchorCursor.(AnchorCursor.java:79)
at com.softwareag.xtools.xapplication.businessdocument.BusinessDocumentWorkspace.processQuery(BusinessDocumentWorkspace.java:561)
at com.softwareag.xtools.xapplication.businessdocument.BusinessDocumentWorkspace.xquery(BusinessDocumentWorkspace.java:196)
at com.softwareag.xtools.xapplication.plugin.StandardWorkspacePlugin.xqueryDocuments(StandardWorkspacePlugin.java:426)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.softwareag.xtools.xapplication.plugin.Action.invoke(Action.java:147)
at com.softwareag.xtools.xapplication.plugin.Dispatcher.execute(Dispatcher.java:153)
at com.softwareag.xtools.xapplication.jsp.SessionContext.processWorkspaceAction(SessionContext.java:376)
at com.softwareag.xtools.xapplication.jsp.taglib.ModuleTag.processDocumentAction(ModuleTag.java:291)
at com.softwareag.xtools.xapplication.jsp.taglib.ModuleTag.doStartTagCore(ModuleTag.java:95)
at com.softwareag.xtools.xapplication.jsp.JspTag.doStartTag(JspTag.java:132)
at org.apache.jsp.browseConsole_jsp._jspService(browseConsole_jsp.java:161)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:536)[/color]

What can I do?

Thanks in advance

Rosanna