W3C home > Mailing lists > Public > public-ws-policy@w3.org > June 2007

RE: Questions on normal forms

From: Asir Vedamuthu <asirveda@microsoft.com>
Date: Tue, 5 Jun 2007 19:13:33 -0700
To: David Hull <dmh@tibco.com>, "public-ws-policy@w3.org" <public-ws-policy@w3.org>
Message-ID: <C9BF0238EED3634BA1866AEF14C7A9E543155013B5@NA-EXMSG-C116.redmond.corp.microsoft.com>

Let's look at your first example. The first example with the Policy wrapper is:

<wsp:Policy>
 <wsp:ExactlyOne>
  <wsp:All>
   <A/>
  </wsp:All>
  <B/>
 </wsp:ExactlyOne>
</wsp:Policy>

Policy is equivalent to All. That is,

<wsp:All>
 <wsp:ExactlyOne>
  <wsp:All>
   <A/>
  </wsp:All>
  <B/>
 </wsp:ExactlyOne>
</wsp:All>

Applying the distributive rule,

<wsp:ExactlyOne>
 <wsp:All><wsp:All><A/></wsp:All></wsp:All>
 <wsp:All><B/></wsp:All>
</wsp:ExactlyOne>

Applying the idempotent rule,

<wsp:ExactlyOne>
 <wsp:All><A/></wsp:All>
 <wsp:All><B/></wsp:All>
</wsp:ExactlyOne>

We checked with a few online policy tools and our command line tool. They all consistently produced the above result. We hope this helps.

Regards,

Asir S Vedamuthu
Microsoft Corporation







From: public-ws-policy-request@w3.org [mailto:public-ws-policy-request@w3.org] On Behalf Of David Hull
Sent: Tuesday, May 29, 2007 12:52 PM
To: public-ws-policy@w3.org
Subject: Questions on normal forms

As far as I can tell, the following are valid compact expressions.
1. What are their normal forms?
2. By what rules are those normal forms computed?
<wsp:ExactlyOne>
  <wsp:All><A/></wsp:All>
  <B/>
</wsp:ExactlyOne>

<wsp:All>
  <wsp:ExactlyOne><A/></wsp:ExactlyOne>
  <B/>
</wsp:All>
Received on Wednesday, 6 June 2007 02:16:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:20:52 GMT