RE: Behaviour of fn:string on sequences

The function calling rules tell you the answer.

Given a signature of "item()?"

- in 1.0 compatibility mode, items after the first in the sequence are
ignored

- otherwise, you get a type error.

Michael Kay


> -----Original Message-----
> From: Paul Duffin [mailto:pduffin@volantis.com] 
> Sent: 23 October 2003 14:15
> To: public-qt-comments@w3.org
> Subject: Behaviour of fn:string on sequences
> 
> 
> 
> fn:string does not state how it should behave when given a sequence 
> containing multiple items. The formal semantics paper does 
> explain that 
> as it has an item? parameter it should be passed the first 
> item in the 
> sequence when in XPath 1.0 compatability mode. However, nowhere can I 
> find how it should behave when it is not in compatability mode.
> 

Received on Thursday, 23 October 2003 09:27:35 UTC