<?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>5923</bug_id>
          
          <creation_ts>2008-07-31 20:25:28 +0000</creation_ts>
          <short_desc>Requirements on schema documents</short_desc>
          <delta_ts>2008-08-14 22:13:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>SML</product>
          <component>Core</component>
          <version>LC</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>resolved</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sandy Gao">sandygao</reporter>
          <assigned_to name="Virginia Smith">virginia.smith</assigned_to>
          <cc>kumarp</cc>
    
    <cc>pratul.dublish</cc>
    
    <cc>virginia.smith</cc>
          
          <qa_contact name="SML Working Group discussion list">public-sml</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>21419</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2008-07-31 20:25:28 +0000</bug_when>
    <thetext>In the conformance section 8,

&quot;2 Each XML Schema document in the model&apos;s definition documents MUST satisfy the conditions expressed in Errors in Schema Construction and Structure (§5.1). [XML Schema Structures]&quot;

Section 5.1 in schema structures is about errors when schemas are constructed, but  there may be schema documents in an SML model that do not participate in schema construction. For example, what if a schema document is only transmitted in the IF and is meant to be merged with other docs to assemble a schema?

When a schema document is used to construct a schema, then the result schema must satisfy all rules in the schema spec; if a schema document is not used to construct any schema, then it still needs to be a good schema document. We need to distinguish these 2 cases in the conformance rules. For example:

&quot;2a For each XML Schema document in the model&apos;s definition documents, the [validity] property of the root element MUST be &quot;valid&quot; when schema validity is assessed with respect to a schema constructed from the &quot;schema for schemas&quot; and the &quot;normative SML schema&quot; schema documents.

2b All schemas assembled from the XML Schema documents in the model&apos;s definition documents MUST satisfy the conditions expressed in Errors in Schema Construction and Structure (§5.1). [XML Schema Structures]

Note: This specification does not define how many schemas are assembled and which schema documents contribute to assembling the schemas.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21473</commentid>
    <comment_count>1</comment_count>
    <who name="Pratul Dublish">pratul.dublish</who>
    <bug_when>2008-08-07 19:41:20 +0000</bug_when>
    <thetext>Resolution in 8/7 call - fix as per Sandy&apos;s proposal in Comment #1 - 2a and 2b</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21519</commentid>
    <comment_count>2</comment_count>
    <who name="Virginia Smith">virginia.smith</who>
    <bug_when>2008-08-12 23:57:41 +0000</bug_when>
    <thetext>Fixed per comment #1. See diff at:

http://www.w3.org/2007/10/htmldiff?doc1=http%3A%2F%2Fdev.w3.org%2Fcvsweb%2F~checkout~%2F2007%2Fxml%2Fsml%2Fbuild%2Fsml.html%3Frev%3D1.242%26content-type%3Dtext%2Fhtml%3B%2520charset%3Diso-8859-1&amp;doc2=http%3A%2F%2Fdev.w3.org%2Fcvsweb%2F~checkout~%2F2007%2Fxml%2Fsml%2Fbuild%2Fsml.html%3Frev%3D1.243%26content-type%3Dtext%2Fhtml%3B%2520charset%3Diso-8859-1#Conformance</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21530</commentid>
    <comment_count>3</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2008-08-13 20:25:26 +0000</bug_when>
    <thetext>&gt; a schema constructed from the &quot;schema for schemas&quot; and
&gt; the &quot;normative SML schema&quot; schema documents.

The above can benefit from links to http://www.w3.org/2001/XMLSchema.xsd and appendix A. &quot;http://www.w3.org/2001/XMLSchema.xsd&quot; may warrant a new entry in section 10.1 Normative References.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21542</commentid>
    <comment_count>4</comment_count>
    <who name="Kumar Pandit">kumarp</who>
    <bug_when>2008-08-14 04:24:49 +0000</bug_when>
    <thetext>+1.
Also agree with Sandy&apos;s suggestion in comment# 3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21560</commentid>
    <comment_count>5</comment_count>
    <who name="Kumar Pandit">kumarp</who>
    <bug_when>2008-08-14 18:42:01 +0000</bug_when>
    <thetext>resolution on 8/14:
Add the references suggested in comment# 3. Does not need review after changes are made.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21568</commentid>
    <comment_count>6</comment_count>
    <who name="Virginia Smith">virginia.smith</who>
    <bug_when>2008-08-14 22:13:14 +0000</bug_when>
    <thetext>Bullet 2 in section 8 changed to the following (text enclosed in &apos;*&apos; are links to a normative reference or a section in the spec.

---------
For each XML Schema document in the model&apos;s definition documents, the [validity] property of the root element MUST be &quot;valid&quot; when schema validity is assessed with respect to a schema constructed from the *XML Schema for Schemas* and *A. Normative SML Schema* schema documents.
--------

New normative reference:
-------
[XML Schema for Schemas]
    XML Schema for XML Schemas. World Wide Web Consortium, 2 May 2001, revised 28 October 2004. 
-------</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>