<?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>4084</bug_id>
          
          <creation_ts>2006-12-15 16:00:06 +0000</creation_ts>
          <short_desc>Static typing of Constr-cont-nodeid-1, -3, -4 and -5</short_desc>
          <delta_ts>2007-09-17 15:17:21 +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.2</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="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>13207</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2006-12-15 16:00:06 +0000</bug_when>
    <thetext>Under the rules for element construction, $y in:

for $x in &lt;a/&gt;,
    $y in &lt;elem&gt;{$x}&lt;/elem&gt;
return $y/a is $x

is typed as element y of xs:anyType.

Therefore $/y is typed as sequence. op:is-same-node requires node()?.

This problem affects:

Constr-cont-nodeid-1
Constr-cont-nodeid-3
Constr-cont-nodeid-4
Constr-cont-nodeid-5

Also related are problems in:

Constr-cont-uripres-1 
Constr-cont-baseuri-2

where the argument to fn:base-uri is typed as a sequence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13208</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2006-12-15 16:09:38 +0000</bug_when>
    <thetext>Simil
Constr-compelem-nodeid-1
Constr-compelem-nodeid-3
Constr-compelem-nodeid-4
Constr-compelem-nodeid-5
Constr-compelem-baseuri-2
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13213</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2006-12-15 17:06:12 +0000</bug_when>
    <thetext>Similarly for:

Constr-docnode-nodeid-1
Constr-docnode-nodeid-3
Constr-docnode-nodeid-4
Constr-docnode-nodeid-5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16560</commentid>
    <comment_count>3</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2007-09-14 09:34:52 +0000</bug_when>
    <thetext>A fix has been attempted in CVS, XQTS_current.zip is updated.

If the resolution is satisfactory, feel free to change status to CLOSED. Otherwise, reopen this report. If no feedback is returned within two weeks, status will be changed to CLOSED. Thanks for reporting!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16584</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2007-09-14 12:49:36 +0000</bug_when>
    <thetext>Constr-compelem-nodeid-5 is not fixed.

Believe it or not.  The type of $x is an untyped element.  Untyped elements may contain more than one text node (even though the one in question doesn&apos;t).

The standard static typing rules don&apos;t allow us to refine this type.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16597</commentid>
    <comment_count>5</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2007-09-14 15:14:35 +0000</bug_when>
    <thetext>A fix has been attempted in CVS, XQTS_current.zip is updated.

If the resolution is satisfactory, feel free to change status to CLOSED.
Otherwise, reopen this report. If no feedback is returned within two weeks,
status will be changed to CLOSED. Thanks for reporting!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16617</commentid>
    <comment_count>6</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2007-09-17 15:17:21 +0000</bug_when>
    <thetext>Thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>