<?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>6011</bug_id>
          
          <creation_ts>2008-09-02 14:21:14 +0000</creation_ts>
          <short_desc>[schema11] base URI comments</short_desc>
          <delta_ts>2009-01-05 15:30:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Schema</product>
          <component>Structures: XSD Part 1</component>
          <version>1.1 only</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>CLOSED</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="John Arwe">johnarwe</reporter>
          <assigned_to name="C. M. Sperberg-McQueen">cmsmcq</assigned_to>
          <cc>David_E3</cc>
          
          <qa_contact name="XML Schema comments list">www-xml-schema-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>21727</commentid>
    <comment_count>0</comment_count>
    <who name="John Arwe">johnarwe</who>
    <bug_when>2008-09-02 14:21:14 +0000</bug_when>
    <thetext>3.13.2 XML Representation of Assertion Schema Components
XML Mapping Summary for XPath Expression Property Record says
&quot;{base URI}  The [base URI] of the host element. &quot;
I think your existing text is OK in its use of &quot;host element&quot; as a kind of &quot;parameter&quot; within your spec.  I found no conflicting definitions at least.

1.4 Dependencies on Other Specifications simply lists Infoset as one of the dependent specs.
Appendix E Required Information Set Items and Properties (normative) lists a number of infoset properties as being required 
[base URI] has not been added it appears, and should be given your XPath expression schema component definition, no?
Not to mention schemaLocation issues from 1.0, where one might argue it should have been cited (if the timing was right wrt Infoset, but presumably it was)

4.2.2 Assembling a schema &lt;include&gt; clause 1
4.2.3 &lt;redefine&gt; clause 2
4.2.4 &lt;override&gt; clause 2
4.2.5.2 &lt;import&gt; clause 2
4.3.2 How schema definitions are located on the Web - item 3
If the schemaLocation value is a relative reference, what base URI is used to resolve it? 
[base URI] of the schemaLocation&apos;s parent element?

4.3.2 How schema definitions are located on the Web - item 3
&quot;It is not an error for such an attempt to fail, ...&quot;
Given the requirement on &lt;override&gt; (MUST resolve), is the stmt above actually true as stated any more?
I might argue the same for &lt;redefine&gt;.
Both 4.2.3 &lt;redefine&gt; clause 2 and 4.2.4 &lt;override&gt; clause 2 seem to contradict the unqualified &quot;is not&quot; above.

Note that some people have argued, very recently, that the lack of any dependency in Schema 1.0 on [XML Base], including indirectly via [base URI],
is evidence of a lack of support for XML Base within W3C and grounds for not depending on XML Base in new specs.  It would be helpful to be explicit about
the handling of base URIs in Schema 1.1 at least, so we can proceed on to newer &quot;discussions&quot; :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21867</commentid>
    <comment_count>1</comment_count>
    <who name="John Arwe">johnarwe</who>
    <bug_when>2008-09-11 18:43:31 +0000</bug_when>
    <thetext>The SML working group chose to endorse this bug on its call of 2008-09-11
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22287</commentid>
    <comment_count>2</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2008-10-30 00:05:36 +0000</bug_when>
    <thetext>The XML Schema WG discussed this issue at length during today&apos;s face to face
meeting.

In general, we are happy to make the appropriate changes and grateful to 
you for pointing out to us the need for them.  Essentially, the three points
of agreement on which we converged in today&apos;s discussion are as follows;
please push back if these seem problematic.

1) The semantics of [base URI] are as described in the XML Base spec.

This follows already from our reference to the Infoset spec (which
says that [base URI] is calculated as specified in the XML Base spec),
but we will add a note pointing out that our reference to the [base
URI] property has the consequence that in XML input, xml:base can be
used with the semantics describedin the XML Base spec.

2) The [base URI] property should be listed as one of infoset
properties we depend on.

This has been done already in connection with bug 5800.

3) Where we resolve relative URIs, they are absolutized using the
[base URI] property of the relevant element, as prescribed by the XML
Base spec.

A detailed wording proposal will be prepared by the editors.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22375</commentid>
    <comment_count>3</comment_count>
    <who name="John Arwe">johnarwe</who>
    <bug_when>2008-11-06 19:20:49 +0000</bug_when>
    <thetext>On 11/6 the SML working group endorsed the resolution in comment 2 without objection.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22499</commentid>
    <comment_count>4</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2008-11-21 20:49:16 +0000</bug_when>
    <thetext>During its 2008-11-21 telecon, the schema WG adopted a proposal to address the third point in comment #2.

The proposal (along with some other changes) can be found at (member-only):
http://www.w3.org/XML/Group/2004/06/xmlschema-1/structures.omni.20081121.html

With this change, the WG believes that all the issues raised in this bug report are addressed. I&apos;m marking this RESOLVED accordingly.

John, if you would indicate your concurrence with or dissent from the
WG&apos;s disposition of the comment by closing or reopening the issue, we&apos;ll
be grateful. If we don&apos;t hear from you in the next two weeks, we&apos;ll assume
that silence implies consent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22510</commentid>
    <comment_count>5</comment_count>
    <who name="John Arwe">johnarwe</who>
    <bug_when>2008-11-23 16:40:19 +0000</bug_when>
    <thetext>changes look ok (in a document of this size, some hint as to which sections to look at for changes would be helpful)

I realized in reading them that a sentence in appendix E is pretty opaque
&gt; For interoperability, processors should accurately reflect these properties of the input to validity assessment.

&quot;reflect&quot;?   My understanding of the intent is that the schema processor should expose &quot;these properties&quot; in the infoset resulting from validity assessment, but honestly I would not (reliably, for sure) attach that intent to the words without out of band knowledge.  I encourage the editors to be less succinct in this case.  &quot;accurately&quot; seems odd too, it hints at unseen dragons.

Since my nominal options are reopen/close, I&apos;ll reopen to ensure this admittedly late comment is at least seen.  In the interests of &quot;full speed ahead&quot;,

(a) I will not raise any formal objection over this no matter what the Schema wg decides to (not) do about it.  If the wg decides to make no such change, it is free to close this bug unilaterally.

(b) I will give you a concrete proposal for the editors:
For interoperability, processors should behave as if these properties were copied from the validity assessment episode&apos;s input infoset to the resulting infoset.  That is, the validity assessment episode&apos;s output infoset should expose these properties and their respective values should match the input infoset.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22531</commentid>
    <comment_count>6</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2008-11-25 01:15:22 +0000</bug_when>
    <thetext>John,

Thank you for the comment on the opening paragraph of appendix E,
which for convenience I reproduce in full:

    This specification requires as a precondition for ·assessment· an
    information set as defined in [XML-Infoset].  The result of
    assessment may depend upon the following information items and
    properties. For interoperability, processors should accurately
    reflect these properties of the input to validity assessment.

The second and third sentences were inserted in a recent revision of
the text, in connection with the resolution of bug 5800 (for those who
need them, the minutes of the relevant meeting are at
http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2008Oct/0007.html).

The editors have not checked with the Working Group yet, but our
understanding of the sentence &quot;For ... assessment&quot; is that it means
NOT (as I think you take it)

    For interoperability, processors SHOULD expose the following
    information items and properties in their representation of the
    PSVI (and do so accurately) of the document.

but instead something more like

    For interoperability, processors SHOULD be careful to be 
    accurate in establishing the values of the following 
    information items and properties (since the result of 
    assessment depends on them).

The problem may lie in the verb &quot;reflect&quot;, which was chosen to allow
the text to get rid of the verb &quot;support&quot; (which one WG member
described as &quot;always a weasel word&quot;) but which turns out to suffer
from frailties of its own.

I think the WG should choose among the following courses of action:

1) Adopt the wording proposed by John Arwe in comment 5, which 
replaces &quot;For ... assessment&quot; with:

    For interoperability, processors should behave as if these
    properties were copied from the validity assessment episode&apos;s
    input infoset to the resulting infoset.  That is, the validity
    assessment episode&apos;s output infoset should expose these properties
    and their respective values should match the input infoset.

This would entail an understanding of the text which differs radically
from mine; in general, the XSD 1.1 spec works hard NOT to make any
recommendations about what PSVI information is exposed by a conforming
processor, and some WG members resisted even the proposal to provide
names for some defined subsets in Appendix D.1, on the grounds that
the names would be taken as recommendations.

2) Adopt the following alternative wording proposal, which replaces
the entire paragraph with:

    This specification requires as a precondition for ·assessment· an
    information set as defined in [XML-Infoset] which contains at
    least the following kinds of information items and properties.

This reverts to the wording of XSD 1.0, but replaces &quot;supports&quot; (which
is vague, and also ill matched with &quot;information set&quot; as its subject)
with &quot;contains&quot; (which is what an information set does to information
items and their properties, in the usage of the infoset spec).

3) Delete the sentence &quot;For ... assessment&quot; to make the paragraph
read:

    This specification requires as a precondition for ·assessment· an
    information set as defined in [XML-Infoset].  The result of
    assessment may depend upon the following information items and
    properties. 

From the fact that assessment results depend on the information items
and properties mentioned, it seems clear already that interoperability
depends on validators taking some care to get the values of the
properties right.  It is hard to imagine a reader benefiting from the
explicit exhortation that validators SHOULD do so.

For what it&apos;s worth, my own recommendation is 2, or 3.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22556</commentid>
    <comment_count>7</comment_count>
    <who name="David Ezell">David_E3</who>
    <bug_when>2008-11-28 16:44:02 +0000</bug_when>
    <thetext>The WG discussed the proposals by MSM in comment #6, and chose to decide the issue using option #2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22598</commentid>
    <comment_count>8</comment_count>
    <who name="John Arwe">johnarwe</who>
    <bug_when>2008-12-01 13:27:43 +0000</bug_when>
    <thetext>great, supah

(nb: I&apos;m not sure at this point if I should be marking it resolved, or if in the Schema wg that is done by the editors to help manage workflow, so I am leaving it re-opened.  Feel free to resolve and close it once you are done with any work its existence signals a need for.)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>