<?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>3054</bug_id>
          
          <creation_ts>2006-03-28 02:06:29 +0000</creation_ts>
          <short_desc>Availability of type definition</short_desc>
          <delta_ts>2006-10-14 14:14:51 +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.0/1.1 both</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>medium, easy</status_whiteboard>
          <keywords>resolved</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="C. M. Sperberg-McQueen">cmsmcq</reporter>
          <assigned_to name="C. M. Sperberg-McQueen">cmsmcq</assigned_to>
          
          
          <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>8925</commentid>
    <comment_count>0</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2006-03-28 02:06:29 +0000</bug_when>
    <thetext>Sections 3.2.5 and 3.3.5 specify that a type definition is known
for an element or attribute (only) if it is valid.

The consequence is that when an element or attribute is locally
invalid, because it does not conform to the relevant type
definition, the PSVI (as defined in 1.0 and the 1.1 status quo)
tells the downstream application that the element or attribute
is invalid, but does not vouchsafe any information about
which type definition it was found to be invalid against.

In simple cases, this can be found by examining the element or
attribute declaration and looking for the declared type 
definition.  In other cases, it requires redoing the work
already done by the schema validator, figuring out which type
definition the element or attribute should be validated against.
If there is any confusion about which type that is, or about
whether the validator actually used the correct type definition,
the current definition of the PSVI does not provide any useful
information.

The type definition should be described as being part of the
PSVI for every element or attribute which is locally assessed,
whether valid or invalid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11975</commentid>
    <comment_count>1</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2006-09-23 03:32:46 +0000</bug_when>
    <thetext>The Working Group discussed this issue at its telcon of 22 September 2006
and concluded that declarations and type definitions which govern 
elements and attributes should be identified in the PSVI whenever
a governing declaration or type definition was found and used for
schema-validity assessment.

There was brief discussion of the possibility that making this
change would involve loss of information in the PSVI, since the
presence of a type definition currently distinguishes certain
cases where an element is invalid (it helps distinguish whether
the error is in local validity or in a dependent).  We eventually
concluded, however, that the relevant information is also 
accessible through the [schema error code] property in the PSVI,
so there was in the end no objection to this change.

The editors are to prepare a wording proposal.  </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12465</commentid>
    <comment_count>2</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2006-10-14 14:14:51 +0000</bug_when>
    <thetext>A wording proosal was prepared along the lines described in
comment #1, and adopted by the working group at its meeting of
13 October 2006.  It has now been integrated into the status
quo documents.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>