xsl: for each group
Hello, I have a file that I read and I need to group them with certain conditions. I've been trying for several days and I only get to group but the result I really want doesn't come out.
Here is an example of the Test:
Here is the response of the TEST: Everything seems correct, but it is not showing the COD_CIUDAD 1013 (one of its lines complies with having ZONA and ESTADO=A)
The logic should be as follows: I will take the COD_CIUDAD = 1001 as an example. If some of the lines that correspond to 1001 have ESTADO=A and have ZONA != "", then that COD_CIUDAD must be shown in the final grouping.