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 5455 - CVS: K2-SeqIDFunc-11 and 12
Summary: CVS: K2-SeqIDFunc-11 and 12
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-02-06 16:18 UTC by Tim Mills
Modified: 2008-03-13 16:07 UTC (History)
0 users

See Also:


Attachments

Description Tim Mills 2008-02-06 16:18:05 UTC
To pass static typing, K2-SeqIDFunc-11 and 12 need an exactly-one around the second argument to fn:id.

fn:id($arg as xs:string*, $node as  node()) as element()*

In call to function 'id', expected type 'node()' for argument 2 but found '(attribute name of type xs:untypedAtomic)*'.


(:*******************************************************:)
(: Test: K2-SeqIDFunc-11                                 :)
(: Written by: Frans Englich                             :)
(: Date: 2007-11-22T11:31:21+01:00                       :)
(: Purpose: Select elements with xml:id, and trigger node sorting. :)
(:*******************************************************:)
(: insert-start :)
declare variable $input-context1 as document-node(element(*, xs:untyped)) extern
al;
(: insert-end :)

id(("short"), $input-context1//xs:element/@name[. = "positiveInteger"])
Comment 1 Frans Englich 2008-02-29 12:07:48 UTC
Fixed in CVS. Added alternative static typing queries.
Comment 2 Tim Mills 2008-03-03 09:15:13 UTC
Unless I'm mistaken, the static tests are identical to the non-static in CVS.

Comment 3 Frans Englich 2008-03-03 10:00:29 UTC
Committed fixes. However, I wish I could guarantee against any silly mistakes.
Comment 4 Tim Mills 2008-03-03 15:27:57 UTC
K2-SeqIDFunc-11 is fine now, but I'm afraid there's a typo in K2-SeqIDFunc-12 ('exaclty-one').
Comment 5 Tim Mills 2008-03-13 16:07:45 UTC
K2-SeqIDFunc-12 is now fixed.  Thanks.