W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2007

[Bug 4164] Static typing of fn-name-16

From: <bugzilla@wiggum.w3.org>
Date: Tue, 09 Jan 2007 12:31:28 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1H4G8W-0005Su-1l@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4164

           Summary: Static typing of fn-name-16
           Product: XML Query Test Suite
           Version: 1.0.2
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XML Query Test Suite
        AssignedTo: andrew.eisenberg@us.ibm.com
        ReportedBy: tim@cbcl.co.uk
         QAContact: public-qt-comments@w3.org


When static typing is in effect, the error XPST0005 should be permitted.  The
expression 'self::div' must not have type empty-sequence().

(: Name: fn-name-16:)
(: Description: Evaluation of the fn:name function with argument that uses the
"
self" axes.  Returns a empty sequence:)
(: Uses fn:count to avoid empty file. :)
(: insert-start :)
declare variable $input-context1 external;
(: insert-end :)


for $h in ($input-context1/works/employee[2])
return fn:count(fn:name($h/self::div))
Received on Tuesday, 9 January 2007 12:31:39 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:32 UTC