<?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>5660</bug_id>
          
          <creation_ts>2008-04-24 15:21:13 +0000</creation_ts>
          <short_desc>CVS: preceding-22, preceding-23</short_desc>
          <delta_ts>2008-04-28 12:37:04 +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 NT</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>INVALID</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>19929</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2008-04-24 15:21:13 +0000</bug_when>
    <thetext>I think there are calls to fn:doc in these which weren&apos;t intentional.

Here $input-context is a document node.


(: Name: preceding-23 :)
(: Description: Evaluation of the preceding axis from the last node in the docum
ent, :)
(: containing only attributes and elements. :)

(: insert-start :)
declare variable $input-context1 external;
(: insert-end :)

&lt;result&gt;
{
    (doc($input-context1)//node())[last()]/preceding::node(),
    empty((doc($input-context1)//node())[last()]/preceding::node())
}
&lt;/result&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19960</commentid>
    <comment_count>1</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2008-04-28 11:09:57 +0000</bug_when>
    <thetext>Hmm, I wonder. XQTSCatalog.xml has:

&lt;input-URI role=&quot;principal-data&quot; variable=&quot;input-context1&quot;&gt;SmallTree&lt;/input-URI&gt;

for preceding-22 and

          &lt;input-URI role=&quot;principal-data&quot; variable=&quot;input-context1&quot;&gt;AttributesAndElements&lt;/input-URI&gt;

for preceding-23.

So $input-context should in these cases be URIs; xs:anyURI or xs:string. The input-URI is not used very extensively, but there are other cases.

Maybe you know what&apos;s the culprit here?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19967</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2008-04-28 12:36:50 +0000</bug_when>
    <thetext>Ignore me - just an embarrassing bug in our test runner.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>