This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The tests fn-lang1args-1 fn-lang1args-2 fn-lang1args-3 all contain expressions which static types as element()* as the second arguement for fn:lang($testlang as xs:string?, $node as node()) as xs:boolean hence causing a static typing exception. Could a [1] be added?
Nick: Thanks for pointing this out. Changes done as requested. Carmelo
Thanks for making the change. My apologies for the delay in getting back about this fix, and for unfortunately suggesting an incorrect fix. My suggestion didn't fix the problem, as because we know nothing about the $input-context, the path expression now has a static type of element()? (i.e. quantifier zero-or-one), which fails to type check against the node() which fn:lang expects. Instead of the [1] could the whole path be surrounded with an exactly-one which should then guarantee the correct type
Specific static typing tests have been added to CVS