<?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>29944</bug_id>
          
          <creation_ts>2016-10-18 13:58:19 +0000</creation_ts>
          <short_desc>[XQ3TS] fn-transform-err-4, 5</short_desc>
          <delta_ts>2016-10-20 15:48:01 +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="Debbie Lockett">debbie</assigned_to>
          <cc>mike</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>127830</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2016-10-18 13:58:19 +0000</bug_when>
    <thetext>fn:transform specifies that the option xslt-version should be a decimal.  In the test case fn-transform-err-4, a string is supplied.  Under the rules for options (FO31 1.5 Options) the expected result should be XPTY0004 and not FOXT0002.

A similar problems exist in fn-transform-err-5

    &lt;test-case name=&quot;fn-transform-err-4&quot;&gt;
        &lt;description&gt;Error - the type of the value supplied for the option &apos;xslt-version&apos; is incorrect&lt;/description&gt;
        &lt;created by=&quot;Debbie Lockett&quot; on=&quot;2015-03-05&quot;/&gt;
        &lt;dependency type=&quot;spec&quot; value=&quot;XQ31+&quot;/&gt;
        &lt;dependency type=&quot;feature&quot; value=&quot;fn-transform-XSLT&quot; satisfied=&quot;true&quot; /&gt;
        &lt;test&gt;&lt;![CDATA[
            declare variable $xsl as xs:string :=&quot;&lt;xsl:stylesheet xmlns:xsl=&apos;http://www.w3.org/1999/XSL/Transform&apos; version=&apos;2.0&apos;&gt;
                &lt;xsl:template match=&apos;/&apos;&gt;
                    &lt;out&gt;
                        &lt;xsl:value-of select=&apos;.&apos; /&gt;
                    &lt;/out&gt;
                &lt;/xsl:template&gt;
            &lt;/xsl:stylesheet&gt;&quot;;
            transform(map{&quot;stylesheet-text&quot;:$xsl, &quot;source-node&quot;:parse-xml(&quot;&lt;doc&gt;this&lt;/doc&gt;&quot;), &quot;xslt-version&quot;:&quot;2.0&quot; })
        ]]&gt;&lt;/test&gt;
        &lt;result&gt;
            &lt;error code=&quot;FOXT0002&quot;/&gt;
        &lt;/result&gt;
    &lt;/test-case&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127883</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2016-10-20 15:42:26 +0000</bug_when>
    <thetext>I&apos;ve taken the liberty of fixing this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>