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 3148 - fn-prefix-from-qname-3
Summary: fn-prefix-from-qname-3
Status: RESOLVED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.9.0
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-26 11:10 UTC by Michael Kay
Modified: 2006-06-19 17:36 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2006-04-26 11:10:01 UTC
Results incorrect. string() applied to an empty sequence returns a zero-length string, so count(string(())) is 1, not 0.
Comment 1 Carmelo Montanez 2006-04-26 14:19:18 UTC
Michael:

Correct.  Please be aware that my version of Saxon does return "0".
Corrected results.  Please close bug if in agreement.

Thanks,
Carmelo
Comment 2 Michael Kay 2006-06-18 20:18:32 UTC
In 0.9.4 the test is now written as:

fn:count(fn:prefix-from-QName(xs:QName("name")))

With this formulation (it no longer uses the string() function) the correct result is zero.
Comment 3 Carmelo Montanez 2006-06-19 17:36:26 UTC
Michael:

Thanks.  Looks as though we are all in the same page now.

Carmelo