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 5294 - Add an explanation on why the smlif:dataType has processContents=skip
Summary: Add an explanation on why the smlif:dataType has processContents=skip
Status: RESOLVED FIXED
Alias: None
Product: SML
Classification: Unclassified
Component: Interchange Format (show other bugs)
Version: LC
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Virginia Smith
QA Contact: SML Working Group discussion list
URL:
Whiteboard:
Keywords: resolved
Depends on:
Blocks:
 
Reported: 2007-11-28 17:38 UTC by Valentina Popescu
Modified: 2007-12-13 19:23 UTC (History)
0 users

See Also:


Attachments

Description Valentina Popescu 2007-11-28 17:38:04 UTC
As part of the resolution for defect http://www.w3.org/Bugs/Public/show_bug.cgi?id=4775, the processContents 
for the smlif:dataType has been changed from lax to skip.

Since this change had some not so obvious reasons, I propose 
to have the spec explain this approach.

Proposal :

Add this comment to the sml-if.xsd schema, under the dataType type

  <xs:complexType name="dataType" mixed="false">
    <xs:annotation>
      <xs:documentation>
The wildcard with processContents "skip" matches the root element of the   model document being packaged. The value of processContents is set to "skip" so that the contained element is not attempted for schema validation. As a result, validity of the packaged document will not affect validity of the IF document itself.
      </xs:documentation>
    </xs:annotation>    
    <xs:sequence>
      <xs:any processContents="skip" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
Comment 1 Virginia Smith 2007-12-03 21:46:29 UTC
Fix per proposal.
Comment 2 Virginia Smith 2007-12-03 22:20:11 UTC
The new schema reads as follows: 
--------
  <xs:complexType name="dataType" mixed="false">
    <xs:annotation>
      <xs:documentation>
The wildcard with processContents "skip" matches the root element of the  
model document being packaged. The value of processContents is set to "skip" so
that the contained element is not processed for schema validation. As a result,
validity of the packaged document will not affect validity of the IF document
itself.
      </xs:documentation>
    </xs:annotation>    
    <xs:sequence>
      <xs:any processContents="skip" minOccurs="0" namespace="##any" maxOccurs="1"/>
    </xs:sequence>
    <xs:anyAttribute namespace="##other" processContents="lax"/>
  </xs:complexType>

--------

Note the phrase "the contained element is not **processed** for schema validation". This is a change from the proposal.
Comment 3 Kumar Pandit 2007-12-05 08:18:39 UTC
I agree with the change in comment# 2.
Comment 4 Sandy Gao 2007-12-05 14:29:31 UTC
I also agree with changes in comment #2.
Comment 5 Valentina Popescu 2007-12-05 14:36:56 UTC
+1 for change described in comment #2
Comment 6 Kirk Wilson 2007-12-13 16:26:38 UTC
+1 for change described in comment #2.