OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

sca-policy message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Suggested resolution to issue 87


On line 427 on CD02 Rev 4
Change appliesTo="sca:binding.ws"
To appliesTo="//sca:binding.ws"

This will apply the policy set to all occurrences of sca:binding.ws at 
any level.
This solves the problem but you may wonder why not /sca:binding.ws which 
would apply to sca:binding.ws
child elements. This would also work but see discussion below.

Change lines 454 to 461 as below:

With this design principle in mind, an XPath expression that is the 
value of an @appliesTo attribute designates what a policySet applies to. 
Note that the XPath expression will always be evaluated within the 
context of an attachment considering elements where binding instances or 
implementations are allowed to be present. The expression is evaluated 
against /the parent element of any binding or implementation element/. 
The policySet will apply to any child binding or implementation elements 
returned from the expression. So, for example, appliesTo=”//binding.ws” 
will match any web service binding. If 
appliesTo=”//binding.ws[@impl=’axis’]” then the policySet would apply 
only to web service bindings that have an @impl attribute with a value 
of ‘axis’.

Q1: Why the rule "The expression is evaluated against /the parent 
element of any binding or implementation element/."
Since the policySet can be attached to any element in the SCDL how do we 
find the parent element?
Why not evaluate the XPath against the root of the SCDL document. 
Surely, this is what we would want for
@attachTo.

Q2. While there is considerable discussion re @appliesTo there is no 
discussion wrt @attachTo. Did we just miss adding
that when we added @attachTo?
-- 
All the best, Ashok


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]