From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Sun Sep 24 2000 - 14:53:53 EDT
On Sun, Sep 24, 2000 at 04:44:15PM +0000, Bjorn Reese wrote:
> While I was at it, I also implemented the substring-before, substring-after,
> and translate functions.
>
> The translate implementation is fairly naive, and probably doesn't work for
> all cases of UTF-8 strings, but a naive implementation is still better than
> none.
right, but you can expect the XPath strings to be in UTF8 too so a simple
compare would do it if the input string is a correct UTF8 input.
> Regarding testing, I was unable to use testXPath to test translate because
> it disliked spaces in literal strings, so I wrote a small testing program
> of my own. I have not tested border-line cases though.
If you have more testcases based on testxPath or would like specific
improvement, send them or request them I will try to comply.
Daniel
-- Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes | Today's Bookmarks : Tel : +33 476 615 257 | 655, avenue de l'Europe | Linux XML libxml WWW Fax : +33 476 615 207 | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind http://www.w3.org/People/all#veillard%40w3.org | RPM badminton Kaffe ---- Message from the list xml@rpmfind.net Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@rpmfind.net
This archive was generated by hypermail 2b29 : Sun Sep 24 2000 - 15:43:16 EDT