<?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>1472</bug_id>
          
          <creation_ts>2005-05-19 20:07:26 +0000</creation_ts>
          <short_desc>[FO] fn:lang: signature should allow empty sequence</short_desc>
          <delta_ts>2005-09-29 11:26:41 +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 1.0</component>
          <version>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</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>
          <dependson>1467</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Rys">mrys</reporter>
          <assigned_to name="Ashok Malhotra">ashok.malhotra</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>3114</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Rys">mrys</who>
    <bug_when>2005-05-19 20:07:26 +0000</bug_when>
    <thetext>Since the node argument is often calculated, we should allow empty:

fn:lang($testlang as xs:string?, $node as node()?) as xs:boolean?

Summary: This function tests whether the language of $node, or the context 
node if the second argument is omitted, as specified by xml:lang attributes is 
the same as, or is a sublanguage of, the language specified by $testlang. The 
language of the argument node, or the context node if the second argument is 
omitted, is determined by the value of the xml:lang attribute on the node, or, 
if the node has no such attribute, by the value of the xml:lang attribute on 
the nearest ancestor of the node that has an xml:lang attribute. If there is 
no such ancestor, then the function returns false

If the second argument is the empty sequence, the function returns the empty 
sequence. If the second argument is omitted and the context item is undefined 
an error is raised: [err:FONC0001]. If the context item is not a node an error 
is raised [err:XPTY0006]XP.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5095</commentid>
    <comment_count>1</comment_count>
    <who name="Mary Holstege">holstege</who>
    <bug_when>2005-07-21 20:44:23 +0000</bug_when>
    <thetext>The working group considered this comment at its meeting today
and decided not to accept it. For rationale, please see bug 1467.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>