<?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>3824</bug_id>
          
          <creation_ts>2006-10-13 13:16:07 +0000</creation_ts>
          <short_desc>Static typing of various fnin-scope-prefixes tests</short_desc>
          <delta_ts>2007-10-08 12:47:32 +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>All</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="Carmelo Montanez">carmelo</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>12424</commentid>
    <comment_count>0</comment_count>
    <who name="Nick Jones">nick</who>
    <bug_when>2006-10-13 13:16:07 +0000</bug_when>
    <thetext>The tests listed below call 

fn:in-scope-prefixes($element as element()) as xs:string*

and pass the result into one of the following functions/constructors which only accept types with quantifier zero or one.

fn:string-length($arg as xs:string?) as xs:integer
fn:upper-case($arg as xs:string?) as xs:string
fn:lower-case($arg as xs:string?) as xs:string
fn:string-to-codepoints($arg as xs:string?) as xs:integer*
xs:string($arg as xs:anyAtomicType?) as xs:string?
fn:substring-before($arg1 as xs:string?, $arg2 as xs:string?) as xs:string
fn:substring-after($arg1 as xs:string?, $arg2 as xs:string?) as xs:string
fn:substring($sourceString as xs:string?, $startingLoc as xs:double) as xs:string
fn:contains($arg1 as xs:string?, $arg2 as xs:string?) as xs:boolean

hence can cause a static typing exception.

fn-in-scope-prefixes-10
fn-in-scope-prefixes-11
fn-in-scope-prefixes-12
fn-in-scope-prefixes-13
fn-in-scope-prefixes-14
fn-in-scope-prefixes-15
fn-in-scope-prefixes-16
fn-in-scope-prefixes-19
fn-in-scope-prefixes-20</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13150</commentid>
    <comment_count>1</comment_count>
    <who name="Carmelo Montanez">carmelo</who>
    <bug_when>2006-12-12 19:59:56 +0000</bug_when>
    <thetext>Nick:

Thanks for the comment.  Changed the quesry to eliminate the static typing issues.  Added &quot;[1]&quot; after the end of the element constructor given as argument to &quot;fn-in-scope-prefixes&quot;

Thanks,
Carmelo
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13253</commentid>
    <comment_count>2</comment_count>
    <who name="Nick Jones">nick</who>
    <bug_when>2006-12-19 16:11:54 +0000</bug_when>
    <thetext>Shouldn&apos;t the [1] be outside of the fn-in-scope-prefixes(...) as this is the function we want to ensure we are only getting one xs:string out of?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13256</commentid>
    <comment_count>3</comment_count>
    <who name="Carmelo Montanez">carmelo</who>
    <bug_when>2006-12-19 21:17:13 +0000</bug_when>
    <thetext>Nick:

Correct.  Corrected.

Carmelo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17051</commentid>
    <comment_count>4</comment_count>
    <who name="Nick Jones">nick</who>
    <bug_when>2007-10-08 12:47:32 +0000</bug_when>
    <thetext>Thanks. Apologies for the delay in closing.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>