XSL to select the group of rows based on the three XML fields and condition