Updated to xslts in preparation for item counting.