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

[Bug 4163] Static typing of fn-name-6, 12

From: <bugzilla@wiggum.w3.org>
Date: Tue, 09 Jan 2007 12:28:20 +0000
To: public-qt-comments@w3.org
Message-Id: <E1H4G5U-0005KZ-Q4@wiggum.w3.org>


           Summary: Static typing of fn-name-6, 12
           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

Since the filter expression isn't just [last()], the normalization rules cause
the type of the argument to fn:name being a zero-or-more sequence rather than a
zero-or-one sequence as required.

(: Name: fn-name-6:)
(: Description: Evaluation of the fn:name function with the argument set to a
n existing element.:)
(:Use of "fn:string-length" to avoid empty file.    :)

(: insert-start :)
declare variable $input-context1 external;
(: insert-end :)

for $h in ($input-context1/works/employee[2])
return fn:string-length(fn:name($h/child::text()[position() = last()]))
Received on Tuesday, 9 January 2007 12:28:35 UTC

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