<?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>28678</bug_id>
          
          <creation_ts>2015-05-22 20:32:30 +0000</creation_ts>
          <short_desc>fn:nilled first signature needs to be able to return empty sequence</short_desc>
          <delta_ts>2016-12-16 19:55:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>Functions and Operators 3.1</component>
          <version>Working drafts</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>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Priscilla Walmsley">pwalmsley</reporter>
          <assigned_to name="Michael Kay">mike</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>120420</commentid>
    <comment_count>0</comment_count>
    <who name="Priscilla Walmsley">pwalmsley</who>
    <bug_when>2015-05-22 20:32:30 +0000</bug_when>
    <thetext>The first signature of fn:nilled (with no parameters) doesn&apos;t allow it to return the empty sequence, but it seems it should allow it.  If $arg is omitted, and the context item is a node but not an element node, it should return the empty sequence according to the rules described.

e.g.  $mydoc/foo/@bar/nilled()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120457</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-05-23 19:00:35 +0000</bug_when>
    <thetext>I agree.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120595</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-05-29 09:10:38 +0000</bug_when>
    <thetext>Thanks, Priscilla.

I have fixed this, and I decided to deem it editorial, as the specification of the function makes it pretty clear that a return type of &quot;xs:boolean?&quot; is necessary.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120596</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-05-29 09:12:06 +0000</bug_when>
    <thetext>By the way, I checked that there are test cases where nilled() with no arguments returns an empty sequence, and there are several.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>