<?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>4686</bug_id>
          
          <creation_ts>2007-06-21 17:44:13 +0000</creation_ts>
          <short_desc>Use schema terminorlogies to describe &quot;xml schema valid&quot;</short_desc>
          <delta_ts>2007-09-20 20:25:41 +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+Interchange Format</component>
          <version>unspecified</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></keywords>
          <priority>P1</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Second draft</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sandy Gao">sandygao</reporter>
          <assigned_to name="Virginia Smith">virginia.smith</assigned_to>
          
          
          <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>15509</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2007-06-21 17:44:13 +0000</bug_when>
    <thetext>The &quot;Model Validation&quot; section has words like &quot;document MUST be XML Schema valid&quot; or &quot;must be valid under the xml schema&quot;. But XML Schema doesn&apos;t define what qualifies as XML schema valid.

Schema assessment produces PSVIs, which is the only output. SML needs to describe the expected behavior in terms of PSVI properties/values. There are 2 obvious options.

1. The [validity] PSVI property for the document element must be &quot;valid&quot;.

2. The [validity] PSVI property for the document element must be &quot;valid&quot; and there is no descendant information items (element or attribute) whose [validity] is &quot;invalid&quot;.

The difference between these 2 options is that if a subtree is laxly assessed and something is marked [validity]=invalid in that subtree, the [validity] of the room is not affected. In this case, option 1 would say it&apos;s valid; while option 2 says it&apos;s not valid.

Depending on the context, we may want to pick one of these 2 alternatives (or others).

A couple of concrete examples. In the core SML spec, section &quot;Model Validation&quot;. It&apos;s not obviously which alternative should be used here.

And in the SML-IF spec, section &quot;The Basics&quot;, SML-IF documents are required to be valid. Here it seems option #1 is more desirable.
A concrete example SML-IF doc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16308</commentid>
    <comment_count>1</comment_count>
    <who name="Valentina Popescu">popescu</who>
    <bug_when>2007-08-28 16:34:41 +0000</bug_when>
    <thetext>copied from the f2f IRC discussion :

&lt;Jim&gt; Bug 4686 Use schema terminorlogies to describe &quot;xml schema valid&quot; which is not a defined term in the SML Schema spec.
*** pratul [c72bd072@128.30.52.23] has joined #sml
&lt;MSM&gt; http://www.w3.org/XML/2001/06/validity-outcomes.html has an overview that may be useful here.
&lt;Jim&gt; MSM differntiated between the notion of conformance in XML Schema 1.0 vs. 1.1 as follows:
&lt;Jim&gt; 1.0 does not define the term &quot;conformance&quot; for documents.
&lt;Jim&gt; 1.1 defines the &quot;conformance&quot; for SML Schema documents and Instnace documents.
&lt;MSM&gt; no, not for instance documents.  Instance documents do not conform, or fail to conform, to XSDL.
&lt;Jim&gt; John proposed that we agree at an abstract level what we mean by &quot;validity&quot; to accomodate the second draft as it is to be reviewed by the SML Schema WG.
&lt;Jim&gt; We can revisit as needed based on feedback from implementors.
&lt;Jim&gt; Kumar requested that a note be added to the spec to emphaize that this is not a final definition.
&lt;Sandy&gt; &lt;my:root xmlns:...&gt;                         -- valid
&lt;Sandy&gt;   &lt;my:ref sml:ref=&quot;true&quot;&gt;                   -- valid
&lt;Sandy&gt;     &lt;sml:uri&gt;...&lt;/sml:uri&gt;                  -- valid
&lt;Sandy&gt;     &lt;some:element&gt;                          -- notKnown
&lt;Sandy&gt;       &lt;child xsi:type=&quot;xs:int&gt;abc&lt;/child&gt;   -- invalid
&lt;Sandy&gt;     &lt;/some:element&gt;
&lt;Sandy&gt;   &lt;/my:ref&gt;
&lt;Sandy&gt; &lt;/my:root&gt;
&lt;Jim&gt; Sandy made three proposals:
&lt;Jim&gt; 1. That PSVI properties be exposed and available for use to the users/consumers.
&lt;Jim&gt; 2. That we define our criteria for the boolean value of validity.
&lt;Jim&gt; 3. That the notion of valid vs. invalid does not require any specific behavior by the validator or the process that invokes it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16310</commentid>
    <comment_count>2</comment_count>
    <who name="Valentina Popescu">popescu</who>
    <bug_when>2007-08-28 16:57:42 +0000</bug_when>
    <thetext>Two options discussed for defining SML schema validity:

A 
- NO invalid anywhere in tree
- No constraints in root element

B
- NO invalid anywhere in tree
- root element &apos;valid&apos;

Agreement to go with option A 


Editors to make a change to the 4th bullet in section 6.
What to be changed as recorded by MSM in IRC:

&lt;MSM&gt; proposal for second bullet:  editors to clarify that this means &quot;xs:schema element in each schema document has [validity] = &apos;valid&apos;&quot;
&lt;MSM&gt; SG alternative for second bullet:  schema document must give rise to a conforming schema (this is a stronger constraint)
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16311</commentid>
    <comment_count>3</comment_count>
    <who name="Valentina Popescu">popescu</who>
    <bug_when>2007-08-28 17:06:41 +0000</bug_when>
    <thetext>More comments from IRC

&lt;Jim&gt; Pratul proposed that for bullet 4, we should say something such as:
&lt;Jim&gt; &quot;For each document, validatin must be possible&quot;
&lt;Jim&gt; changed to validation assessment.
&lt;Jim&gt; Wordsmithing to be dnoe by editors.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16330</commentid>
    <comment_count>4</comment_count>
    <who name="Virginia Smith">virginia.smith</who>
    <bug_when>2007-08-30 00:13:41 +0000</bug_when>
    <thetext>Changed keyword to &apos;editorial&apos; based on new comments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16396</commentid>
    <comment_count>5</comment_count>
    <who name="Virginia Smith">virginia.smith</who>
    <bug_when>2007-09-06 08:27:30 +0000</bug_when>
    <thetext>Bullet points 2 and 4 changed from:
======
- Each XML Schema document in the model&apos;s definition documents MUST be a valid XML Schema document [XML Schema Datatypes]
- Each document in the model MUST be XML Schema valid with respect to the XML Schema documents in the model&apos;s definition document
======

to

=======
- 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]
- 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 Schema Structures]
=======</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16622</commentid>
    <comment_count>6</comment_count>
    <who name="Pratul Dublish">pratul.dublish</who>
    <bug_when>2007-09-17 15:30:45 +0000</bug_when>
    <thetext>Looks good - recommend approval by the WG</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16730</commentid>
    <comment_count>7</comment_count>
    <who name="Pratul Dublish">pratul.dublish</who>
    <bug_when>2007-09-20 20:25:41 +0000</bug_when>
    <thetext>Resolving as per consensus in 9/20 call</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>