[Bug 30081] New: functx-fn-number-all

https://www.w3.org/Bugs/Public/show_bug.cgi?id=30081

            Bug ID: 30081
           Summary: functx-fn-number-all
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3 & XPath 3 Test Suite
          Assignee: oneil@saxonica.com
          Reporter: josh.spiegel@oracle.com
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

Mike recently modified this test to include a document constructor.  However,
this is an XPath test and there is no document constructor in XPath 3.0. 

<test-case name="functx-fn-number-all"
xmlns="http://www.w3.org/2010/09/qt-fots-catalog">
      <description/>
      <created by="Frans Englich" on="2008-05-16"/>
      <modified by="Michael Kay" on="2017-03-17" change="make construction of
document node explicit"/>
      <environment ref="functx_prices"/>
      <dependency type="spec" value="XP30+ XQ10+"/>
      <test><![CDATA[
         let $priceDoc := (/) 
         return document{(number( $priceDoc//prod[1]/price), number(
$priceDoc//prod[1]/@currency), 
                          number('29.99'), number('ABC'), number( () ), 
                          $priceDoc// prod/price[number() > 35])}]]></test>
      <result>
         <assert-xml><![CDATA[29.99 NaN 29.99 NaN NaN<price
currency="USD">69.99</price><price currency="USD">39.99</price>]]></assert-xml>
      </result>
   </test-case>

Why was the document constructor necessary?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 27 March 2017 18:14:13 UTC