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