How do I restrict a collection of data, excluding elements held by another node set?
Main XML Document
Code:
<premount row="14">
<det_code>ABA</det_code>
</premount>
<premount row="21">
<det_code>DAA</det_code>
</premount>
(further inside the document)
Code:
<result>
<det_code>YTY</det_code>
<cust_code>Customer A</cust_code>
</result>
<result>
<det_code>DAA</det_code>
<cust_code>Customer A</cust_code>
</result>
My failing XSL snippet
Code:
<xsl:for-each select="//result[cust_code='Customer A'][det_code=not(//premount/det_code)]">
(I'm expecting <premount row="21"> to be excluded)
I've tried:
Code:
[not(det_code=//premount/det_code)]
Code:
[det_code!=//premount/det_code]
Thanks in advance,
Carl