<?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>3833</bug_id>
          
          <creation_ts>2006-10-13 16:51:49 +0000</creation_ts>
          <short_desc>Static typing of fn-lang</short_desc>
          <delta_ts>2008-01-21 17:45:20 +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>1.0.1</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</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="Nick Jones">nick</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>12442</commentid>
    <comment_count>0</comment_count>
    <who name="Nick Jones">nick</who>
    <bug_when>2006-10-13 16:51:49 +0000</bug_when>
    <thetext>The tests

fn-lang1args-1
fn-lang1args-2
fn-lang1args-3

all contain expressions which static types as element()* as the second arguement for

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

hence causing a static typing exception. Could a [1] be added?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13149</commentid>
    <comment_count>1</comment_count>
    <who name="Carmelo Montanez">carmelo</who>
    <bug_when>2006-12-12 19:20:51 +0000</bug_when>
    <thetext>Nick:

Thanks for pointing this out.  Changes done as requested.

Carmelo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17052</commentid>
    <comment_count>2</comment_count>
    <who name="Nick Jones">nick</who>
    <bug_when>2007-10-08 12:55:59 +0000</bug_when>
    <thetext>Thanks for making the change. My apologies for the delay in getting back about this fix, and for unfortunately suggesting an incorrect fix.

My suggestion didn&apos;t fix the problem, as because we know nothing about the $input-context, the path expression now has a static type of element()? (i.e. quantifier zero-or-one), which fails to type check against the node() which fn:lang expects.

Instead of the [1] could the whole path be surrounded with an exactly-one which should then guarantee the correct type</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18442</commentid>
    <comment_count>3</comment_count>
    <who name="Nick Jones">nick</who>
    <bug_when>2008-01-21 17:44:52 +0000</bug_when>
    <thetext>Specific static typing tests have been added to CVS</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>