I will apply a xslt stylesheet which transform the data into exactly the same structure but after I applied some rules and validations to it. One of my rules states that if <Project> and/or <Date> is empty, the whole invoice will be ignored. Applied to the above I would like the outcome to be:
Since both invoice 2 and 3 didn't pass the validation. For now I am using the following expression in a <xsl:for-each>
"/*[local-name()='Main'][(Project != '') and (Date != '')]"
that gives me all the invoices except the two that are missing a project or date. What I want is to exclude invoice 2 and 3 totally.