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 4163 - Static typing of fn-name-6, 12
Summary: Static typing of fn-name-6, 12
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 12:28 UTC by Tim Mills
Modified: 2010-03-16 15:56 UTC (History)
0 users

See Also:


Attachments

Description Tim Mills 2007-01-09 12:28:20 UTC
Since the filter expression isn't just [last()], the normalization rules cause the type of the argument to fn:name being a zero-or-more sequence rather than a zero-or-one sequence as required.

(: Name: fn-name-6:)
(: Description: Evaluation of the fn:name function with the argument set to a no
n existing element.:)
(:Use of "fn:string-length" to avoid empty file.    :)

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

for $h in ($input-context1/works/employee[2])
return fn:string-length(fn:name($h/child::text()[position() = last()]))
Comment 1 Carmelo Montanez 2007-03-14 14:12:17 UTC
Tim:

Thanks for the message.  Fixed the test by removing the static typing dependencies.

Thanks,
Carmelo