Re: quick question on new functions specifications in rq25.xml...

(this is out of date - the current draft has more work on this area)

On 11/01/11 14:45, Axel Polleres wrote:
> Looked briefly over the numeric, date, etc functions, looks great!
>
> Just a small question for the moment regarding:
>
> "
> 17.4.5.9 tz
>
>   simple literal   timezone (xsd:dateTime arg)
>
> Returns the timezone part of arg as a simple literal.
> "
>
> we should mention what happens when the timezone part is empty. in fn:timezone-from-dateTime
> this returns an ewmpty sequence, what is our equivalent of returning an empty sequence? an empty sting literal?
> or shall we return an error? that question actually may also apply to 17.4.5.8 timezone.

timezone(no TZ) raises an error because we have nothing for empty 
sequence AKA nil (rdf:nil would be confusing IMHO).

tz(no TZ) returns ""


	Andy

Received on Tuesday, 11 January 2011 16:38:41 UTC