This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 4164 - Static typing of fn-name-16
Summary: Static typing of fn-name-16
Status: CLOSED DUPLICATE of bug 3971
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 1.0.2
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-09 12:31 UTC by Tim Mills
Modified: 2010-03-16 15:57 UTC (History)
0 users

See Also:


Attachments

Description Tim Mills 2007-01-09 12:31:27 UTC
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))
Comment 1 Tim Mills 2007-01-09 12:35:39 UTC

*** This bug has been marked as a duplicate of bug 3971 ***