RE: xml:base test case

Thank you for contributing a test case for xml:base. We suggest adding the test case and the resulting policy expression (in the normal form with four policy alternatives) to Round 1 [1] (say Policy28.xml).

[1] http://dev.w3.org/cvsweb/~checkout~/2006/ws/policy/interop/Round1/

Regards,

Asir S Vedamuthu
Microsoft Corporation


From: public-ws-policy-request@w3.org [mailto:public-ws-policy-request@w3.org] On Behalf Of Christopher B Ferris
Sent: Tuesday, February 13, 2007 4:22 PM
To: public-ws-policy@w3.org
Subject: xml:base test case


Per my ACTION-204, here is a test scenario for xml:base

Store this document at http://@@@/common/Protection

<wsp:Policy
        xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"
        xmlns:wsp="http://www.w3.org/ns/ws-policy"
        xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
        wsu:Id="Protection" >
  <sp:EncryptSignature wsp:Optional="true" />
  <sp:ProtectTokens wsp:Optional="true" />
</wsp:Policy>

This policy expression references the expression above using a relative URI
with the xml:base expressed in the wsp:Policy element.

<wsp:Policy
        xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"
        xmlns:wsp="http://www.w3.org/ns/ws-policy"
        xml:base="http://@@@/common/">
  <wsp:PolicyReference URI="Protection" />
  <sp:OnlySignEntireHeadersAndBody />
</wsp:Policy>

The resulting policy expression MUST normalize to:

<wsp:Policy
        xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"
        xmlns:wsp="http://www.w3.org/ns/ws-policy">
  <wsp:ExactlyOne>
    <wsp:All>
      <sp:OnlySignEntireHeadersAndBody />
      <sp:EncryptSignature wsp:Optional="true" />
      <sp:ProtectTokens wsp:Optional="true" />
    </wsp:All>
  </wsp:ExctlyOne>
</wsp:Policy>


Cheers,

Christopher Ferris
STSM, Software Group Standards Strategy
email: chrisfer@us.ibm.com<mailto:chrisfer@us.ibm.com>
blog: http://www.ibm.com/developerworks/blogs/page/chrisferris
phone: +1 508 377 9295

Received on Wednesday, 21 February 2007 00:10:12 UTC