Required item type of first argument of year-from-date() is xs:date. Invalid date "2010-10" (Too short)