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 4161 - Static typing of LocalNameFromQNameFunc001, 002, 003, 004, 005, 018, 019, 020
Summary: Static typing of LocalNameFromQNameFunc001, 002, 003, 004, 005, 018, 019, 020
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: Frans Englich
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 08:59 UTC by Tim Mills
Modified: 2007-09-14 12:54 UTC (History)
0 users

See Also:


Attachments

Description Tim Mills 2007-01-09 08:59:30 UTC
These queries all use fn:QName with the second argument statically typed as xs:string?, while the expected type is xs:string, since the constructor xs:string has static return type xs:string?.

(: Name: LocalNameFromQNameFunc001 :)
(: Description: Test function fn:local-name-from-QName. Using QName element as i
nput :)

declare default element namespace "http://www.example.com/QNameXSD";

(: insert-start :)
declare variable $input-context external;
(: insert-end :)

fn:local-name-from-QName(fn:QName("http://www.example.com/QNameXSD", xs:string((
$input-context/root/elemQN)[1])))
Comment 1 Tim Mills 2007-01-09 10:13:15 UTC
NamespaceURIFromQNameFunc001, 002, 003, 004, 005, 018, 019, 020 have similar problems.
Comment 2 Frans Englich 2007-09-14 09:34:52 UTC
A fix has been attempted in CVS, XQTS_current.zip is updated.

If the resolution is satisfactory, feel free to change status to CLOSED. Otherwise, reopen this report. If no feedback is returned within two weeks, status will be changed to CLOSED. Thanks for reporting!
Comment 3 Tim Mills 2007-09-14 12:54:10 UTC
Thanks.