[SCH-EUSR-29] Each combination of 'Dataset Type ID, Process ID and End User Country' MUST occur only once.
SCH-EUSR-29
/eusr:EndUserStatisticsReport
every $st in (eusr:Subset[normalize-space(@type) = 'PerDT-PR-EUC']), $stdt in ($st/eusr:Key[normalize-space(@metaSchemeID) = 'DT']), $stpr in ($st/eusr:Key[normalize-space(@metaSchemeID) = 'PR']), $stuc in ($st/eusr:Key[normalize-space(@schemeID) = 'EndUserCountry']) satisfies count(eusr:Subset[normalize-space(@type) ='PerDT-PR-EUC'][every $dt in (eusr:Key[normalize-space(@metaSchemeID) = 'DT']), $pr in (eusr:Key[normalize-space(@metaSchemeID) = 'PR']), $uc in (eusr:Key[normalize-space(@schemeID) = 'EndUserCountry']) satisfies concat(normalize-space($dt/@schemeID),'::',normalize-space($dt),'::', normalize-space($pr/@schemeID),'::',normalize-space($pr),'::', normalize-space($uc)) = concat(normalize-space($stdt/@schemeID),'::',normalize-space($stdt),'::', normalize-space($stpr/@schemeID),'::',normalize-space($stpr),'::', normalize-space($stuc))]) = 1