CAST xpath AS TEXT[] and get the first element with (..)[1]