<?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>5055</bug_id>
          
          <creation_ts>2007-09-17 15:12:11 +0000</creation_ts>
          <short_desc>1.0.3dev: emptyorderdecl-2, ForExprType049</short_desc>
          <delta_ts>2010-03-16 15:59:50 +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>CLOSED</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="Tim Mills">tim</reporter>
          <assigned_to name="Frans Englich">frans.englich</assigned_to>
          
          
          <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>16615</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2007-09-17 15:12:11 +0000</bug_when>
    <thetext>In the latest update, we get 

fn:exactly-one called with a sequence containing zero or more than one item

in 

emptyorderdecl-2
emptyorderdecl-3
emptyorderdecl-10
emptyorderdecl-11
emptyorderdecl-14
emptyorderdecl-15
emptyorderdecl-18
emptyorderdecl-19
emptyorderdecl-22
emptyorderdecl-24
ForExprType049</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16874</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2007-09-29 18:12:03 +0000</bug_when>
    <thetext>Yes, I get the same problem. The change that was made to these files is clearly incorrect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16967</commentid>
    <comment_count>2</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2007-10-02 09:51:02 +0000</bug_when>
    <thetext>A fix has been attempted in CVS, XQTS_current.zip is updated.

If the resolution is satisfactory, feel free to change status to closed. Otherwise reopen this report. If no feedback is given within two weeks, status will be set to closed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16978</commentid>
    <comment_count>3</comment_count>
    <who name="Nick Jones">nick</who>
    <bug_when>2007-10-02 10:21:02 +0000</bug_when>
    <thetext>Thanks. The emptyorderdecl-* tests are fixed, but there is still an exactly-one in the ForExprType049 which is causing problems</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16982</commentid>
    <comment_count>4</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2007-10-02 10:42:53 +0000</bug_when>
    <thetext>How would you like ForExprType049 to be, exactly? Like this?

for $test as xs:decimal in data(zero-or-one($input-context/root/InterleaveType/*))
return $test

(See http://www.w3.org/Bugs/Public/show_bug.cgi?id=4046 for a discussion of what previously was considered problematic with this test.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16985</commentid>
    <comment_count>5</comment_count>
    <who name="Nick Jones">nick</who>
    <bug_when>2007-10-02 11:03:16 +0000</bug_when>
    <thetext>for $test as xs:decimal in data($input-context/root/InterleaveType/*)
return $test

should be fine.

The problem wasn&apos;t with the quantifier, but with knowing $test was xs:decimal rather than xs:untypedAtomic, which we fixed by rewriting the &quot;declare variable $input-context external&quot; with a &quot;as document-node(schema-element(root))&quot; so it gets the schema types.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>