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 3687 - Static typing of fn:lang
Summary: Static typing of fn:lang
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 1.0
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Carmelo Montanez
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-08 16:23 UTC by Tim Mills
Modified: 2010-03-16 15:51 UTC (History)
0 users

See Also:


Attachments

Description Tim Mills 2006-09-08 16:23:05 UTC
Queries fn-lang-18 to fn-lang-21 fail static type checking because:

e.g. fn:lang("en",$input-context1/langs/para[1])

fn:lang($testlang as xs:string?, $node as node()) as xs:boolean

but 

$input-context1/langs/para[1]

typechecks as element()* (i.e. a sequence)

There are similar problems for query fn-root-14.
Comment 1 Carmelo Montanez 2006-09-26 17:26:06 UTC
Tim:

Thanks for the message.  Fixed tests, by adding "fn:exactly-one" arorund the second argument.

Thanks,
Carmelo