<?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>8500</bug_id>
          
          <creation_ts>2009-12-15 16:18:04 +0000</creation_ts>
          <short_desc>Priority of validation errors</short_desc>
          <delta_ts>2013-06-11 14:39:43 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Query Test Suite</product>
          <component>XML Query Test Suite</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</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>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nick Jones">nick</reporter>
          <assigned_to name="Benjamin Nguyen">benjie.nguyen</assigned_to>
          <cc>mike</cc>
    
    <cc>oliver</cc>
    
    <cc>oneil</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>30142</commentid>
    <comment_count>0</comment_count>
    <who name="Nick Jones">nick</who>
    <bug_when>2009-12-15 16:18:04 +0000</bug_when>
    <thetext>Looking at validateexpr-26:

validate { document { &lt;a/&gt;, &lt;b/&gt; } }

The error XQDY0061 (document node whose children do not consist of exactly one element node ) is expected.

I think it is unclear in the spec whether XQDY0027 (root element information item in the PSVI resulting from validation does not have the expected validity property) might also permitted.

Are the validate rules expected to be followed in order, and errors thrown with precedence from the order listed? If not, could the second error be added.

When streaming results being able to throw the XQDY0027 error is preferable as it would be known before the XQDY0061 error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30144</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2009-12-15 16:47:42 +0000</bug_when>
    <thetext>Seems reasonable to add the extra error code. Generally the presumption is in favour of allowing alternative error codes if there&apos;s a plausible rationale for them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32848</commentid>
    <comment_count>2</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2010-03-08 16:18:37 +0000</bug_when>
    <thetext>The XML Query and XSL WGs discussed this issue at our March 2 meeting. We agreed to add the additional expected error that you have requested and I have made this change.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49579</commentid>
    <comment_count>3</comment_count>
    <who name="Oliver Hallam">oliver</who>
    <bug_when>2011-06-14 13:25:56 +0000</bug_when>
    <thetext>I think the XQDY0027 error code we suggested was wrong.  As far as I can see the problem is that the empty namespace is not in the in scope schema types.

Thus I believe the alternative error code should be XQDY0084, and not XQDY0027.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89088</commentid>
    <comment_count>4</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2013-06-11 14:39:43 +0000</bug_when>
    <thetext>This bug has been resolved in QT3</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>