Bugs item #1828362, was opened at 2007-11-08 16:51
Message generated for change (Comment added) made by stmane
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1828362&group_id=56967

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: PF/runtime
Group: Pathfinder 0.20
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Maurice van Keulen (mvankeulen)
>Assigned to: Stefan Manegold (stmane)
Summary: XQ:normalize-space does not remove leading/trailing space

Initial Comment:
(stable 0.20, Suse Linux, mps backend)

The function fn:normalize-space($arg as xs:string?) as xs:string is defined in 
the standard as
"Returns the value of $arg with whitespace normalized by stripping leading and 
trailing whitespace and replacing sequences of one or more than one whitespace 
character with a single space."
(see http://www.w3.org/TR/xpath-functions/#func-normalize-space)

It does however not remove the final leading and trailing whitespace, i.e., 
normalize-space("   a   b   c   ") gives " a b c " instead of "a b c".


----------------------------------------------------------------------

>Comment By: Stefan Manegold (stmane)
Date: 2007-11-11 14:26

Message:
Logged In: YES 
user_id=572415
Originator: NO

fixed in CVS (XQuery_0-20 branch; propagation to development trunk
pending):

fn:normalize-space now also (correcly) removes leading & trailing spaces.

Test added in
pathfinder/tests/BugTracker/Tests/fn_normalize-space.SF-1828362.* .


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1828362&group_id=56967

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to