W3C home > Mailing lists > Public > public-rif-wg@w3.org > June 2008

[DTB] missing string predicates?

From: Gary Hallmark <gary.hallmark@oracle.com>
Date: Tue, 17 Jun 2008 12:22:40 -0700
Message-ID: <48580F00.4030705@oracle.com>
To: RIF WG <public-rif-wg@w3.org>

to compare if number N1 is less than N2

pred:numeric-less-than(N1 N2)

to compare if string S1 is less than S2

pred:numeric-less-than(func:compare(S1 S2) 0)

I would prefer

pred:string-less-than(S1 S2)

I propose we add

pred:string-equal
pred:string-not-equal
pred:string-greater-than
pred:string-less-than
pred:string-greater-than-or-equal
pred:string-less-than-or-equal

I also propose we either
a. remove func:compare

or

b. rename to func:string-compare, and add
func:numeric-compare
func:date-time-compare
... and so on for all builtin types that are comparable
Received on Tuesday, 17 June 2008 19:25:26 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:07:45 UTC