Hi,
Use this expression in Conditional formatting of that field.
my:field1 = current()/preceding-sibling::my:group2/my:field1 | current()/following-sibling::my:group2/my:field1
Here field1 is the field on which we have to apply Conditional formatting and group2 is repeating group.