<?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>29942</bug_id>
          
          <creation_ts>2016-10-18 10:43:35 +0000</creation_ts>
          <short_desc>[QT3TS] fn-transform-2, 26, 27</short_desc>
          <delta_ts>2016-10-25 16:26:26 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XQuery 3 &amp; XPath 3 Test Suite</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</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="O&apos;Neil Delpratt">oneil</assigned_to>
          <cc>andrew_coleman</cc>
          
          <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>127824</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2016-10-18 10:43:35 +0000</bug_when>
    <thetext>Test case fn-transform-2 should not be dependent on XSLT 3.0, as it makes no use of XSLT 3.0 features.  It works with an XSLT 2.0 processor as soon as the member

&quot;xslt-version&quot;:3.0,

is removed from the options map.

fn-transform-26 has suspicious assertions.  The test produces a boolean value, but the assertions

&lt;any-of&gt;
  &lt;assert&gt;true()&lt;/assert&gt;  &lt;!-- caching seems to have taken place --&gt;
  &lt;assert&gt;false()&lt;/assert&gt; &lt;!-- caching seems not to have taken place --&gt;
 &lt;/any-of&gt;

do not depend on the result of the query.  I presume it should have been

&lt;any-of&gt;
  &lt;assert-true /&gt;  &lt;!-- caching seems to have taken place --&gt;
  &lt;assert-false /&gt; &lt;!-- caching seems not to have taken place --&gt;
 &lt;/any-of&gt;

fn-transform-27 is similarly odd.  The test returns a string, but the assertion is:

        &lt;result&gt;
            &lt;assert&gt;true()&lt;/assert&gt;
        &lt;/result&gt;

which should always succeed regardless of the outcome of evaluation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127893</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Coleman">andrew_coleman</who>
    <bug_when>2016-10-21 07:21:03 +0000</bug_when>
    <thetext>The WG agreed the following resolution:

ACTION A-657-18: O&apos;Neil to look at tests fn-transform-2, 26, 27 to improve them and actually test the caching, see Bug 29942</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127945</commentid>
    <comment_count>2</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2016-10-24 17:48:08 +0000</bug_when>
    <thetext>(In reply to Tim Mills from comment #0)
&gt; Test case fn-transform-2 should not be dependent on XSLT 3.0, as it makes no
&gt; use of XSLT 3.0 features.  It works with an XSLT 2.0 processor as soon as
&gt; the member
&gt; 
&gt; &quot;xslt-version&quot;:3.0,
&gt; 
&gt; is removed from the options map.

This stylesheet is dependent on XSLT 3.0 because the variable $dateTime has static=&apos;yes&apos;.


We have fixed-up the assertions accordingly. We also think the caching is sound, therefore removed the misleading comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127960</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2016-10-25 16:26:15 +0000</bug_when>
    <thetext>The new expected result for fn-trasform-26 assumes that caching has taken place.  But since it is implementation-defined whether the cache option has an effect, false, is also possible.  I&apos;ve fixed that now.

I&apos;ve updated fn-transform-2, which does not depend on XSLT 3.0.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>