<?xml version="1.0" encoding="UTF-8"?>
<?ICEA pattern?> 
 <!-- Notices - Distribution Notice: 
           This document has been approved for Public Release and is available for use without restriction.
       -->
<sch:pattern id="ISM-ID-00247" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
    <sch:p id="ruleText">
        [ISM-ID-00247][Error] An Originator Controlled contact is not allowed to be mark with disseminationControl [OC]
    </sch:p>
    <sch:p id="codeDesc">
        check that any element that has attribute ism:pocType with a ORCON token does not have attribute ism:disseminationControls with
        a token [OC] specified.
    </sch:p>
    <sch:rule context="*[util:containsAnyTokenMatching(@ism:pocType,'^ORCON$')]">
        <sch:assert  
            test="not(util:containsAnyTokenMatching(@ism:disseminationControls,'^OC$'))" 
            flag="error">
            [ISM-ID-00247][Error] An Originator Controlled contact is not allowed to be mark with disseminationControl [OC]
        </sch:assert>
    </sch:rule>
</sch:pattern>