<?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>5797</bug_id>
          
          <creation_ts>2008-06-24 15:28:29 +0000</creation_ts>
          <short_desc>SML validity appeal to schema-validity is underspecified</short_desc>
          <delta_ts>2008-08-21 22:09:35 +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>Macintosh</rep_platform>
          <op_sys>Mac System 9.x</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>LC</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="C. M. Sperberg-McQueen">cmsmcq</reporter>
          <assigned_to name="Kumar Pandit">kumarp</assigned_to>
          <cc>james.lynn</cc>
    
    <cc>kirk.wilson</cc>
    
    <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>20808</commentid>
    <comment_count>0</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2008-06-24 15:28:29 +0000</bug_when>
    <thetext>In section 8, the first condition for valid SML models (or perhaps I 
should say SML-valid models) is that 

    In each instance document in the model, the [validity] property 
    of the root element and all of its attributes and descendants 
    MUST NOT be &quot;invalid&quot; when schema validity is assessed by a 
    conforming schema-aware processor with respect to the referenced 
    XML Schema documents in the model&apos;s definition documents. [XML &apos;   
    Schema Structures]

But the conditions given do not determine an interoperable result
(even within the limits of XSD 1.0).  

We need to decide, and specify, whether validity assessment needs
to be initiated with type-driven, element-driven, lax-wildcard,
or strict-wildcard validation.  If we specify lax wildcard validation,
documents may be vacuously valid; if we specify strict wildcard
validation, models without any schema documents cannot be valid
(that may be OK).  We can&apos;t specify which element or type should be
used in general; it might be specified in the SML-IF document
(or in some out-of-scope way, for SML processors).

Perhaps the simplest thing to do, in the light of our discusssions
yesterday, would be to specify that validation is started in
lax- or strict-wildcard mode.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21221</commentid>
    <comment_count>1</comment_count>
    <who name="Pratul Dublish">pratul.dublish</who>
    <bug_when>2008-07-17 20:03:45 +0000</bug_when>
    <thetext>Record of discussion on 7/17 - members felt we need more time to investigate this

Sandy: possible solutions. a) when there is no schema document at all, then use &quot;lax-wildcard&quot;, otherwise &quot;strict&quot;. or b) for instances documents covered by at least one &quot;schema binding&quot;, use &quot;strict&quot;; if an instance is not covered by any &quot;schema binding&quot;, then use &quot;lax&quot;.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21417</commentid>
    <comment_count>2</comment_count>
    <who name="Pratul Dublish">pratul.dublish</who>
    <bug_when>2008-07-31 19:57:43 +0000</bug_when>
    <thetext>Resolution in 7/31 call

If a schema is bound to an instance document, we perform strict-wildcard validation. If a schema is not bound to an instance document, no schema validation is performed. 

The SML spec should explicitly mention that it does not define how a schema is bound an instance document.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21521</commentid>
    <comment_count>3</comment_count>
    <who name="Virginia Smith">virginia.smith</who>
    <bug_when>2008-08-13 00:11:42 +0000</bug_when>
    <thetext>A note was added to section 8 as part of the resolution of Bug #5797 that states that this spec does not define how a schema is
bound an instance document.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21595</commentid>
    <comment_count>4</comment_count>
    <who name="Kumar Pandit">kumarp</who>
    <bug_when>2008-08-19 02:55:14 +0000</bug_when>
    <thetext>Added item 8 in the first item-list under section 8 Conformance. 

---
8. The processor MUST start Schema-Validity Assessment at the document root element with no stipulated declaration or definition. If the document root element and the schema determine an element declaration (by the name of the element) or a type definition (via xsi:type), then strict validation is performed; if they do not identify any declaration or definition, then no schema-validity assessment is performed.

Note:

This method is generally known as strict-wildcard validation.
---

links:
Schema-Validity Assessment =&gt; http://www.w3.org/TR/xmlschema-1/#cvc-assess-elt
strict validation =&gt; http://www.w3.org/TR/xmlschema-1/#key-sva</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21607</commentid>
    <comment_count>5</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2008-08-20 02:59:03 +0000</bug_when>
    <thetext>The first list (about processor conformance) already has

&quot;1. The validator MUST perform model validation  as defined in this specification.&quot;

So I didn&apos;t expect a new item to be added to that list. Instead, I expected to see changes in the last list (model validity) to reflect our &quot;strict if bound, no validation otherwise&quot; decision (see comment #2). e.g. change bullet 1 to:

&quot;1. In each instance document in the model, the [validity] property of the root element MUST be &quot;valid&quot;, and the [validity] property of all the other elements and all the attributes MUST NOT be &quot;invalid&quot;, when schema validity is assessed with respect to any schema that is bound to this instance document. The assessment starts at the root element with no stipulated declaration or definition. [XML Schema Structures]&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21609</commentid>
    <comment_count>6</comment_count>
    <who name="Kirk Wilson">kirk.wilson</who>
    <bug_when>2008-08-20 11:21:41 +0000</bug_when>
    <thetext>+1 for Comment #5.  Suggest rewording final sentence, reversing order of the clauses:

The assessment starts with no stipulated declaration or
definition at the root element. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21617</commentid>
    <comment_count>7</comment_count>
    <who name="Pratul Dublish">pratul.dublish</who>
    <bug_when>2008-08-21 19:12:11 +0000</bug_when>
    <thetext>Make the following change to Item 1 of the definition of valid SML model and remove Item 8 from the definition of conforming SML validators

 In each instance document in the model which is bound to a schema,
 the [validity] property of the root element MUST be &quot;valid&quot;, and the
 [validity] property of all the other elements and all the attributes
 MUST NOT be &quot;invalid&quot;, when schema validity is assessed with respect
 to any schema that is bound to this instance document. The assessment
 starts at the root element with no stipulated declaration or
 definition. [XML Schema Structures].
 The schema-validity of instance documents not bound to any
 schema does not contribute to the validity or invalidity of the 
 model.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21620</commentid>
    <comment_count>8</comment_count>
    <who name="Kumar Pandit">kumarp</who>
    <bug_when>2008-08-21 22:09:35 +0000</bug_when>
    <thetext>fixed per comment# 7.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>