Added resources directory; fixed incorrect XQuery in play.xpl