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 4166 - Static typing of fn-lang1args-1, 2, 3 and fn-lang-2
Summary: Static typing of fn-lang1args-1, 2, 3 and fn-lang-2
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 1.0.2
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-09 13:57 UTC by Tim Mills
Modified: 2010-03-16 15:57 UTC (History)
0 users

See Also:


Attachments

Description Tim Mills 2007-01-09 13:57:59 UTC
The second argument to fn:lang is statically typed as a zero-or-more sequence, rather than the expected exactly-one argument type.

(:*******************************************************:)
(:Test: fn-lang1args-1                                    :)
(:Written By: Carmelo Montanez                            :)
(:Date: Tue Apr 12 16:29:03 GMT-05:00 2005                :)
(:Purpose: Evaluates The "lang" function                 :)
(: with the arguments set as follows:                    :)
(:$testlang = "en", node with no "xml:lang" attribute    :)
(:*******************************************************:)
(: insert-start :)
declare variable $input-context external;
(: insert-end :)

fn:lang(xs:string("en"),$input-context/root/time)
Comment 1 Carmelo Montanez 2007-03-15 14:04:44 UTC
Hey Tim:

Thanks for the message.  Fized the tests by removing the static typing dependecies.

Thanks,
Carmelo