query and namespace

X-Application Version: 4.1.1
Tamino Version : 4.1.1
Platform : WinXP
WebContainer : Tamocat 4.1.1
JDK Version : 1.4.2_2

I have the following query :
for $x in input()/prefix0:Patient where ft:text-contains($x//prefix0:Nom,‘a*’) return $x
It works in interactive interface but not in xapplication.
I have put in xapplication.xml :


I precise i have used the prefixe xs for xs:date(…) with success.

I have also a problem with sort by (…,…)
Only the first criteria is taken into account.

use :

[tf:containsText(…,…)]

rather than where ft:text-contains(…,…)