<?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>3701</bug_id>
          
          <creation_ts>2006-09-12 12:39:04 +0000</creation_ts>
          <short_desc>fn-union-node-args-003</short_desc>
          <delta_ts>2010-03-16 15:53:00 +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 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="Tim Mills">tim</reporter>
          <assigned_to name="Ravindranath (Ravi) Chennoju">ravindranath.chennoju</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>11617</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2006-09-12 12:39:04 +0000</bug_when>
    <thetext>$input-context/bib/book[3]/title | root($input-context/bib/book[3]/title)

fails static typechecking because root takes node()?, not node()*.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11722</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2006-09-14 16:52:45 +0000</bug_when>
    <thetext>One way to allow this expression to pass staic type checking would be to filter the operand of fn:root:

$input-context/bib/book[3]/title | root(($input-context/bib/book[3]/title)[1])</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11723</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-09-14 17:02:56 +0000</bug_when>
    <thetext>&gt;One way to allow this expression to pass staic type checking would be to filter
the operand of fn:root:

$input-context/bib/book[3]/title | root(($input-context/bib/book[3]/title)[1])

This really demonstrates worst possible practice. To get the query through static  cardinality checking, you change the expression in such a way that there is no cardinality checking at all, whether static or dynamic. If static type checking is going to encourage people to do this sort of thing, then it is a really bad idea.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12063</commentid>
    <comment_count>3</comment_count>
    <who name="Ravindranath (Ravi) Chennoju">ravindranath.chennoju</who>
    <bug_when>2006-09-26 17:53:51 +0000</bug_when>
    <thetext>Fixed the test using fn:exactly-one function:
$input-context/bib/book[3]/title | root(fn:exactly-one($input-context/bib/book[3]/title))</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>