W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2011

[Bug 14904] New: [QT3] op-concat-18

From: <bugzilla@jessica.w3.org>
Date: Tue, 22 Nov 2011 13:02:26 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-14904-523@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=14904

           Summary: [QT3] op-concat-18
           Product: XPath / XQuery / XSLT
           Version: Member-only Editors Drafts
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3 & XPath 3 Test Suite
        AssignedTo: benjie.nguyen@gmail.com
        ReportedBy: tim@cbcl.co.uk
         QAContact: public-qt-comments@w3.org


I disagree with the expected error code for test op-concat-18.

Consider the simpler query

"abc" || fn:concat#3

This is equivalent to

fn:concat("abc", fn:concat#3)

and because the expected type of arguments to fn:concat is xs:anyAtomicType?,
section 3.1.5.2 Function Conversion Rules apply, giving

fn:concat(fn:data("abc"), fn:data(fn:concat#3))

fn:data(fn:concat#3) will raise err:FOTY0013.

   <test-case name="op-concat-18">
      <description>Can't have a function item as an argument to concat
</description>
      <created by="Michael Kay" on="2011-06-24"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      <test>("abc" || "abc" ||  fn:concat#3)</test>
      <result>
         <error code="XPTY0004"/>
      </result>
   </test-case>

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 22 November 2011 13:02:38 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:36 UTC