<?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>6920</bug_id>
          
          <creation_ts>2009-05-19 09:30:34 +0000</creation_ts>
          <short_desc>WS-Enum: xml:lang causes schema validation failure</short_desc>
          <delta_ts>2009-06-24 00:06:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WS-Resource Access</product>
          <component>Enumeration</component>
          <version>PR</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>REMIND</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="Katy Warr">katy_warr</reporter>
          <assigned_to name="Katy Warr">katy_warr</assigned_to>
          
          
          <qa_contact name="notifications mailing list for WS Resource Access">public-ws-resource-access-notifications</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>25193</commentid>
    <comment_count>0</comment_count>
    <who name="Katy Warr">katy_warr</who>
    <bug_when>2009-05-19 09:30:34 +0000</bug_when>
    <thetext>The WS-Enumeration spec uses the xml:lang attribute in order to define the language of the wesn:Reason in the EnumerationEnd message.   The definition of this attribute in the corresponding schema causes my schema editor to fail with &quot;Cannot resolve the name &apos;xml:lang&apos; to a(n) &apos;attribute declaration&apos; component.&quot;  

This is the offending part of the schema: 

  &lt;xs:complexType name=&quot;LanguageSpecificStringType&quot;&gt;
    &lt;xs:simpleContent&gt;
      &lt;xs:extension base=&quot;xs:string&quot;&gt;
        &lt;xs:attribute ref=&quot;xml:lang&quot; /&gt;
        &lt;xs:anyAttribute namespace=&quot;##other&quot; processContents=&quot;lax&quot; /&gt;
      &lt;/xs:extension&gt;
    &lt;/xs:simpleContent&gt;
  &lt;/xs:complexType&gt;

I think that the problem may be that xml:lang should be used to define the &quot;language used in the contents and attribute values of any element in an XML document&quot;. [1]  This isn&apos;t how it&apos;s being used in the WS-Enumeration spec as it&apos;s being used to define the language of the actual message content (i.e. the wsen:Reason).

Proposal:
--------

Don&apos;t use xml:lang to define the Enumeration reason code. 

In the schema, replace:
  &lt;xs:attribute ref=&quot;xml:lang&quot; /&gt;
with
  &lt;xs:attribute name=&quot;lang&quot; type=&quot;xs:language&quot; /&gt;

and remove the namespace prefix &quot;xml&quot; from the enumeration message.  
So
  &lt;wsen:Reason xml:lang=&quot;language identifier&quot; &gt;
      xs:string
  &lt;/wsen:Reason&gt; ?
becomes:
  &lt;wsen:Reason lang=&quot;language identifier&quot; &gt;
      xs:string
   &lt;/wsen:Reason&gt; ?

with the same update to the description, i.e.:
 [Body]/wsen:EnumerationEnd/wsen:Reason
This optional element contains text, in the language specified by the @lang attribute, describing the reason for the unexpected enumeration termination. 

[1] http://www.w3.org/TR/REC-xml/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25313</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Freund">bob</who>
    <bug_when>2009-05-26 20:42:31 +0000</bug_when>
    <thetext>&lt;xs:import namespace=&quot;http://www.w3.org/XML/1998/namespace&quot; schemaLocation=&quot;http://www.w3.org/2001/xml.xsd&quot;&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25314</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Freund">bob</who>
    <bug_when>2009-05-26 20:43:59 +0000</bug_when>
    <thetext>resolve with proposal #1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>