Fix minor issues in XSL transformations, refs #519, #462