W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2003

RE: ORA-FO-TRANSLATE 7.4.14: fn:translate

From: Ashok Malhotra <ashokma@microsoft.com>
Date: Mon, 22 Sep 2003 11:36:28 -0700
Message-ID: <E5B814702B65CB4DA51644580E4853FB0ADB3786@red-msg-12.redmond.corp.microsoft.com>
To: "Stephen Buxton" <stephen.buxton@oracle.com>, <public-qt-comments@w3.org>
Cc: "Kay, Michael" <Michael.Kay@softwareag.com>
The semantics of fn:translate now read:

 

"Every character in the value of $arg that appears at some position M in
the value of $mapString, where the value of $transString is less than M
characters in length, is omitted from the returned value. If $mapString
is the zero-length string $arg is returned."

The first sentence covers the case where $transString is the zero-length
string.  Characters in $arg that appear in $mapString would be removed.
The second sentence covers the case where $mapString is the zero-length
string.

All the best, Ashok 

________________________________

From: public-qt-comments-request@w3.org
[mailto:public-qt-comments-request@w3.org] On Behalf Of Stephen Buxton
Sent: Monday, June 30, 2003 7:57 AM
To: public-qt-comments@w3.org
Subject: ORA-FO-TRANSLATE 7.4.14: fn:translate

 

Functions and Operators, Section 7.4.14: fn:translate says that the
result is the empty sequence if $transstring or $mapstring is the empty
sequence. This is not intuitive. 

If $mapstring is the empty sequence, then the result should be $srcval. 

If $transstring is the empty sequence, then the result should be 
either 
    $srcval 
or 
    $srcval minus the characters in $mapstring 
[either definition would make sense].

 
Received on Monday, 22 September 2003 14:38:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:01 GMT