Subject: [Simple] regarding multiple conditions for a rule, rfc 4745 (common policy)

From: <[email-masked]>
Date: Mon, 19 Nov 2007 14:20:48 +0530

Hi,
 
   This is regarding the possiblity of having multiple conditions for
rule. As per the schema in RFC 4745 (Common Policy)
there can be only one of the conditions (like identity, sphere,
validity)
 
 <xs:complexType name="conditionsType">
        <xs:complexContent>
            <xs:restriction base="xs:anyType">
                <xs:choice maxOccurs="unbounded">
                    <xs:element name="identity"
                    type="cp:identityType" minOccurs="0"/>
                    <xs:element name="sphere"
                    type="cp:sphereType" minOccurs="0"/>
                    <xs:element name="validity"
                    type="cp:validityType" minOccurs="0"/>
                    <xs:any namespace="##other" processContents="lax"
                    minOccurs="0" maxOccurs="unbounded"/>
                </xs:choice>
            </xs:restriction>
        </xs:complexContent>
    </xs:complexType>
 
But the same RFC 4745 (Common Policy) quotes below given example(in
section 12 of the RFC), in which a rule has multiple conditions
<?xml version="1.0" encoding="UTF-8"?>
   <ruleset xmlns="urn:ietf:params:xml:ns:common-policy">
       <rule id="f3g44r1">
           <conditions>
               <identity>
                   <one id="sip:[email-masked]"/>
               </identity>
               <sphere value="work"/>
               <validity>
                   <from>2003-12-24T17:00:00+01:00</from>
                   <until>2003-12-24T19:00:00+01:00</until>
               </validity>
           </conditions>
           <actions/>
           <transformations/>
       </rule>
   </ruleset>

is this example right?? can we have multiple conditions for a rule.
 
Regards
Ajay Kasam
_______________________________________________
Simple mailing list
[email-masked]
https://www1.ietf.org/mailman/listinfo/simple