<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>3723</bug_id>
          
          <creation_ts>2006-09-13 17:55:54 +0000</creation_ts>
          <short_desc>Non-normative recommendation on how effective polices should be calculated when a policy is associated with an arbitrary XML element.</short_desc>
          <delta_ts>2006-09-26 16:08:54 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WS-Policy</product>
          <component>Attachment</component>
          <version>FPWD</version>
          <rep_platform>All</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sergey Beryozkin">sergey.beryozkin</reporter>
          <assigned_to name="Sergey Beryozkin">sergey.beryozkin</assigned_to>
          <cc>asirveda</cc>
          
          <qa_contact name="Web Services Policy WG QA List">public-ws-policy-qa</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>11664</commentid>
    <comment_count>0</comment_count>
    <who name="Sergey Beryozkin">sergey.beryozkin</who>
    <bug_when>2006-09-13 17:55:54 +0000</bug_when>
    <thetext>Title : Non-normative recommendation(or clarification) on how effective polices should be calculated when a policy is associated with an arbitrary XML element.
 
Target : WS-Policy Attachment, section 3.3
 
Justification :
WS-Policy Attachment, section 3.3 [1] describes how a policy can be associated with an arbititrary XML element. This section says : &quot;The precise semantics of how element policy is to be processed once discovered is domain-specific; however, implementations are likely to follow the precedent specified in the section below on WSDL [WSDL 1.1] and Policy.&quot;
The referenced section (see [2] for ex) describes how WSDL element policies are processed and how they should be merged so that an effective policy for a corresponding policy subject be calcualted.
This can be generalized in section 3.3 as a non-normative recommendation.
 
Proposal :
Add to section 3.3 a non-normative recommendation(or clarification) on how effective polices should be calculated when a policy is associated with an arbitrary XML element. It can be added after the following text :

&quot;The precise semantics of how element policy is to be processed once discovered is domain-specific; however, implementations are likely to follow the precedent specified in the section below on WSDL [WSDL 1.1] and Policy ...&quot;.

Like this :
 
&quot; which follows this non-normative recommendation : When attaching a policy to an XML element, a policy scope SHOULD be implied for that attachment. The policy scope SHOULD contain the policy subject associated with that element and not those associated with the children of that element.&quot;
this is a key addition (several options are possible, whichever is simplier/better):
 
&quot;An effective policy for a contained policy subject SHOULD be calculated by merging an element policy of *this* xml element with any other element policies whose policy scope contains the same policy subject&quot;
 
If we take WSDL&apos; EndpointPolicySubject [2] as a fictitious example and say we take a wsdl:port as an arbitray XML element to which a policy is attached, then according to this non-normataive recommendation an effective policy for EndpointPolicySubject  will be a merge of wsdl:port, wsdl:binding and wsdl:portType, which is what [2] describes.
 
Now, just as an example, let&apos;s have a look at an EPR as an arbitrary XML element with a policy attached inside, perhaps as a first child of epr metadata element[3]. EPR identifies an EndpointPolicySubject, specifically it might be assumed it maps to wsdl:port. According to this non-normative recommendation an effective policy for identified subject will be a merge of a policy attached to EPR + wsdl:binding + wsdl:portType which is consistent with [2]
Please note that an EPR example is just an example. Relevant sections or specifications may decide that in case of EPR no merge is needed with wsdl:portType and wsdl:binding for an effective policy be calculated, that is its attached policy will be a single element policy which will be used to calculate an effective policy for a corresponding policy subject
 
[1]
http://dev.w3.org/cvsweb/~checkout~/2006/ws/policy/ws-policy-attachment.html?content-type=text/html;%20charset=utf-8#XMLElementAttachement 
[2]
http://dev.w3.org/cvsweb/~checkout~/2006/ws/policy/ws-policy-attachment.html?content-type=text/html;%20charset=utf-8#EndpointPolicySubject
[3]
http://lists.w3.org/Archives/Public/public-ws-policy/2006Sep/0028.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>