This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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"])
Fixed in CVS. Added alternative static typing queries.
Unless I'm mistaken, the static tests are identical to the non-static in CVS.
Committed fixes. However, I wish I could guarantee against any silly mistakes.
K2-SeqIDFunc-11 is fine now, but I'm afraid there's a typo in K2-SeqIDFunc-12 ('exaclty-one').
K2-SeqIDFunc-12 is now fixed. Thanks.