<?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>3767</bug_id>
          
          <creation_ts>2006-09-25 15:26:14 +0000</creation_ts>
          <short_desc>document-node(...) not tested</short_desc>
          <delta_ts>2006-09-27 15:19:36 +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</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</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="Frans Englich">frans.englich</reporter>
          <assigned_to name="Andrew Eisenberg">andrew.eisenberg</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>12005</commentid>
    <comment_count>0</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2006-09-25 15:26:14 +0000</bug_when>
    <thetext>It appears the XQTS has no tests for document-node() combined with element() or schema-element():

bash-2.05b$ echo &quot;document-node(element(testingRegExp))&quot; | grep -nHR &apos;document-node([^:]\+)&apos;
(standard input):1:document-node(element(testingRegExp))
bash-2.05b$ 

bash-2.05b$ find -name &quot;*.xq&quot; | xargs grep -nHR &apos;document-node([^:]\+)&apos;
bash-2.05b$   


This appears to be the current coverage:

---------------------------------------------------
bash-2.05b$ find -name &quot;*.xq&quot; | xargs grep -nHR &apos;document-node()&apos;
./Queries/XQuery/Expressions/seqExprTypes/sequenceExprTypeswitch/K-sequenceExprTypeswitch-8.xq:10:           case document-node() return -2
./Queries/XQuery/Expressions/FLWORExpr/ForExprType/ForExprType021.xq:8:for $doc as document-node() in $input-context
./Queries/XQuery/Expressions/FLWORExpr/ForExprType/ForExprType056.xq:10:for $test as document-node() in $input-context
./Queries/XQuery/Expressions/FLWORExpr/ForExprType/ForExprType072.xq:2:(: Description: FLWOR expressions with type declaration. Attempt type declaration of document-node() on a set of element nodes :)
./Queries/XQuery/Expressions/FLWORExpr/ForExprType/ForExprType072.xq:10:for $test as document-node() in ($input-context//fs:Folder)[1]/fs:File/fs:FileName
./Queries/XQuery/Expressions/FLWORExpr/ForExprType/ForExprType073.xq:2:(: Description: FLWOR expressions with type declaration. Attempt type declaration of document-node() on a set of values :)
./Queries/XQuery/Expressions/FLWORExpr/ForExprType/ForExprType073.xq:10:for $test as document-node() in data( ($input-context//fs:Folder)[1]/fs:File/fs:FileName )
bash-2.05b$                 
---------------------------------------------------

I will write tests that cover non-schema aware implementations(partly done). Although they will be run by schema-aware as well, they won&apos;t test schema-specific areas.

Proposed solution:
* Include my tests
* Write schema-specific tests


Frans</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12104</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2006-09-27 15:19:36 +0000</bug_when>
    <thetext>I&apos;d really like to get XQTS 1.0.1 out. If you can add a small number of tests today to cover this, then please do so. Otherwise, it will have to wzit.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>