If, like me, you want to keep your xwql readable, you can also add this after assigning the xwql string :
#set($xwql = " select ... ") #set($Q="\n") #set($xwql = $xwql.replaceAll("$Q", " ")) It will just remove the carriage-return so XWQL parser does not complain, BR, Jeremie 2012/5/14 Jeremie BOUSQUET <jeremie.bousq...@gmail.com> > I think I just found the problem ... > Instead of : > > > #set($findWQL = " > from doc.object($classname) as qat > ") > > ... Write this : > > #set($findWQL = " from doc.object($classname) as qat ") > > It seems the XWQL parser does not like carriage-return in queries at all > ... :) > > Best regards, > Jeremie > > > 2012/5/10 Eugen Colesnicov <ecolesni...@gmail.com> > >> try >> ... >> where qat.language like 'en' >> ... >> >> :) I don't know why >> >> -- >> Best regards >> Eugen Colesnicov >> >> -- >> View this message in context: >> http://xwiki.475771.n2.nabble.com/XWQL-issue-tp7532124p7546601.html >> Sent from the XWiki- Users mailing list archive at Nabble.com. >> _______________________________________________ >> users mailing list >> users@xwiki.org >> http://lists.xwiki.org/mailman/listinfo/users >> > > _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users