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 2722 - [F+O] Compatibility of string-length()
Summary: [F+O] Compatibility of string-length()
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 1.0 (show other bugs)
Version: Candidate Recommendation
Hardware: PC Windows XP
: P2 minor
Target Milestone: ---
Assignee: Ashok Malhotra
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-17 17:57 UTC by Michael Kay
Modified: 2007-02-25 23:42 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2006-01-17 17:57:39 UTC
Appendix D of F+O, in the entry for string-length(), says:

If you apply fn:string-length(@a) == 0; In 1.0 returns true if @a does not
exist. In 2.0 returns false.

This is no longer the case (we fixed this problem). string-length() is now 0, so
this expression returns true.

However, there's another minor incompatiblity that needs to be documented here,
which can be copied from the entry immediately below (normalize-space):

If compatibility mode is off, numbers and booleans will give errors for first
arg. Also, multiple nodes will give error.
Comment 1 Ashok Malhotra 2006-01-18 16:09:07 UTC
I decided to treat this as editorial and have implemented Michael Kay's
recommendtions.  Appendix D is non-normative.
Comment 2 Jim Melton 2007-02-25 23:42:18 UTC
Closing bug because commenter has not objected to the resolution posted and more than two weeks have passed.