<?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>4068</bug_id>
          
          <creation_ts>2006-12-11 14:39:02 +0000</creation_ts>
          <short_desc>XML Schema does not allow for validating xml:id in policy documents</short_desc>
          <delta_ts>2006-12-13 18:00:03 +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>Framework+Attachment</component>
          <version>LC</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>
          <dependson>3560</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Felix Sasaki">fsasaki</reporter>
          <assigned_to name="Felix Sasaki">fsasaki</assigned_to>
          
          
          <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>13129</commentid>
    <comment_count>0</comment_count>
    <who name="Felix Sasaki">fsasaki</who>
    <bug_when>2006-12-11 14:39:02 +0000</bug_when>
    <thetext>Title: XML Schema does not allow for validating xml:id in policy documents

Description: The XML Schema document for the WS-Policy LC WD is not yet updated. The reason is that the latest revision http://dev.w3.org/cvsweb/~checkout~/2006/ws/policy/ws-policy.xsd?rev=1.6
has a problem with the schema update for the resolution for
http://www.w3.org/Bugs/Public/show_bug.cgi?id=3560 (enable the usage of
xml:id):
If you use xml:id at the &lt;Policy&gt; element in an instance with the
current schema, you will get an error. You can&apos;t use xml:id, typed as an
ID, on an element which has an ID attribute (like wsu:Id) specifically
declared for it.

Justification: Validation of a policy document against the policy schema should be possible also if xml:id is used. 

Target: XML Schema document, with a reference to its latest and dated version from the XML Schema namespace document at http://www.w3.org/2006/07/ws-policy

Proposal: There are three solutions for the problem:
  a) publish two flavors of the schema, one with xml:id, one with wsu:Id
  b) declare two subtypes which are accessible via xsi:type:
&lt;Policy ... xsi:type=&quot;xid-flavor&quot; xml:id=&quot;boo&quot; ...&gt; versus &lt;Policy ...
  xsi:type=&quot;wsu-flavor&quot; wsu:id=&quot;boo&quot; ...&gt;
  c) delete the explicit reference to &lt;xs:attribute ref=&quot;wsu:Id&quot;/&gt; .
This would make both xml:id and wsu:Id extensibility points.  
I have a high preference for c), including a note in the WD to warn
schema users (don&apos;t use other ID attributes than these two), to avoid
the confusion created by deleting the explicit reference to
&lt;xs:attribute ref=&quot;wsu:Id&quot;/&gt;.
I have not opened an issue on this and not reopened 3560, since the
normative text has precedence over the schema anyway.

See the discussion thread at http://lists.w3.org/Archives/Public/public-ws-policy/2006Dec/0029.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13169</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Cotton">pcotton</who>
    <bug_when>2006-12-13 18:00:03 +0000</bug_when>
    <thetext>The WG chose option c) from:
http://lists.w3.org/Archives/Public/public-ws-policy/2006Dec/0029.html

&gt;c) delete the explicit reference to &lt;xs:attribute ref=&quot;wsu:Id&quot;/&gt; .

Additional changes to the RDDL file and WG home page were identified in this thread:
http://lists.w3.org/Archives/Public/public-ws-policy/2006Dec/0035.html 

See: tp://www.w3.org/2006/12/13-ws-policy-irc#T17-59-34

/paulc


</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>