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 5514 - CVS: Static Typing: K2-Steps-21 to K2-Steps-29
Summary: CVS: Static Typing: K2-Steps-21 to K2-Steps-29
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Frans Englich
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-03 09:47 UTC by Tim Mills
Modified: 2010-03-16 16:00 UTC (History)
0 users

See Also:


Attachments

Description Tim Mills 2008-03-03 09:47:30 UTC
K2-Steps-21 fails static type checking.  Since function argument $arg is has implicit type item()*, $arg/@e may fail with XPTY0019 (the result of a step in path expression must not be an atomic value).

(:*******************************************************:)
(: Test: K2-Steps-21                                     :)
(: Written by: Frans Englich                             :)
(: Date: 2007-11-22T11:31:21+01:00                       :)
(: Purpose: Tricky combination of focuses and function calls. :)
(:*******************************************************:)
declare variable $root :=
<a>
    <b e="B"/>
    <c e="B"/>
</a>;
declare function local:function($arg)
{
$root["B" eq $arg/@e]
};
$root/local:function(c)
Comment 1 Frans Englich 2008-06-26 16:00:18 UTC
Ok, I added separate static queries which essentially was copies of the baselines. Haven't tested it, take it for a spin please.