<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Policy xmlns="urn:oasis:names:tc:xacml:3.0:core:schema:wd-17" 
		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
		PolicyId="urn:oasis:names:tc:xacml:2.0:conformance-test:IIC340:policy" 
		RuleCombiningAlgId="urn:oasis:names:tc:xacml:3.0:rule-combining-algorithm:deny-overrides" 
		Version="1.0" 
		xsi:schemaLocation="urn:oasis:names:tc:xacml:3.0:policy:schema:os access_control-xacml-2.0-policy-schema-os.xsd">
    <Description>
        Policy for Conformance Test IIC341.
        Purpose - Function Evaluation - Set Functions: dayTimeDuration-intersection
    </Description>
    <Target/>
    <Rule Effect="Permit" RuleId="urn:oasis:names:tc:xacml:2.0:conformance-test:IIC340:rule">
        <Condition>
		  <Apply FunctionId="urn:oasis:names:tc:xacml:1.0:function:integer-equal">
            <Apply FunctionId="urn:oasis:names:tc:xacml:3.0:function:dayTimeDuration-bag-size">
                <Apply FunctionId="urn:oasis:names:tc:xacml:3.0:function:dayTimeDuration-intersection">
                    <Apply FunctionId="urn:oasis:names:tc:xacml:3.0:function:dayTimeDuration-bag">
                        <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#dayTimeDuration">P5DT2H0M0S</AttributeValue>
                        <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#dayTimeDuration">P1DT8H24M</AttributeValue>
                    </Apply>
                    <AttributeDesignator AttributeId="urn:oasis:names:tc:xacml:2.0:conformance-test:test-attr" 
                    	Category="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject" 
                    	DataType="http://www.w3.org/2001/XMLSchema#dayTimeDuration" 
                    	MustBePresent="false"/>
                </Apply>
            </Apply>
            <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#integer">2</AttributeValue>
		  </Apply>
        </Condition>
    </Rule>
</Policy>
