This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 13016 - schema at http://www.w3.org/2011/03/ws-mex/MetadataExchange.xsd is incorrect
Summary: schema at http://www.w3.org/2011/03/ws-mex/MetadataExchange.xsd is incorrect
Status: CLOSED REMIND
Alias: None
Product: WS-Resource Access
Classification: Unclassified
Component: MetadataExchange (show other bugs)
Version: CR
Hardware: All All
: P2 major
Target Milestone: ---
Assignee: notifications mailing list for WS Resource Access
QA Contact: notifications mailing list for WS Resource Access
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-21 22:54 UTC by Gilbert Pilz
Modified: 2011-09-13 21:37 UTC (History)
1 user (show)

See Also:


Attachments

Description Gilbert Pilz 2011-06-21 22:54:14 UTC
The schema at http://www.w3.org/2011/03/ws-mex/MetadataExchange.xsd is incorrect. The definition of the 'GetMetadata' request element is missing the following line:

    <xs:attribute name='Content' type='xs:anyURI'/>
Comment 1 Doug Davis 2011-06-21 23:11:41 UTC
GetMetadata is defined as:
  <mex:GetMetadata Content='xs:any' ? ...>
    <mex:Dialect Type='mex:QNameSerialization'
                 Identifier='xs:anyURI' ?
                 Content='xs:anyURI' ? .../> *
    xs:any*
  </mex:GetMetadata>

and the xsd shows:
  <xs:element name='GetMetadata'>
    <xs:complexType>
      <xs:sequence>
        <xs:element ref='tns:Dialect' minOccurs='0' maxOccurs='unbounded'/>
        <xs:any namespace='##other' processContents='lax' minOccurs='0'
                maxOccurs='unbounded'/>
      </xs:sequence>
      <xs:attribute name='Content' type='xs:anyURI'/>
      <xs:anyAttribute namespace='##other' processContents='lax'/>
    </xs:complexType>
  </xs:element>


And 'Dialect' is defined as:
  <xs:element name='Dialect'>
    <xs:complexType>
      <xs:attribute name='Type' type='tns:QNameSerialization' use='required'/>
      <xs:attribute name='Identifier' type='xs:anyURI'/>
      <xs:attribute name='Content' type='xs:anyURI'/>
      <xs:anyAttribute namespace='##other' processContents='lax'/>
    </xs:complexType>
  </xs:element>


Isn't that right?  Notice the 'Content' attribute in the last bit.
Comment 2 Gilbert Pilz 2011-06-22 01:12:48 UTC
The schema that I downloaded from http://www.w3.org/2011/03/ws-mex/MetadataExchange.xsd does *not* have a @Content attribute defined for the GetMetadata element. It runs from lines 29-37 and looks like this:

  <xs:element name="GetMetadata">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="tns:Dialect" minOccurs="0" maxOccurs="unbounded"/>
        <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
      </xs:sequence>
      <xs:anyAttribute namespace="##other" processContents="lax"/>
    </xs:complexType>
  </xs:element>

Notice the lack of <xs:attribute name='Content' . . .
Comment 3 Doug Davis 2011-06-22 01:16:44 UTC
Its not supposed to.  The 'Content' attribute is under the
Dialect element - referenced from:
        <xs:element ref="tns:Dialect" minOccurs="0" maxOccurs="unbounded"/>
Comment 4 Doug Davis 2011-06-22 01:17:48 UTC
Never mind - I see what you mean now - I was looking at the wrong
Content attribute.  doi!
Comment 5 Doug Davis 2011-07-04 19:18:53 UTC
it appears the the spec has the right info but the xsd is out of sync with it.
Comment 6 Doug Davis 2011-07-05 20:04:40 UTC
Fixed with the sync-up work done over the last weekend.