logo       

Re: Function signature: msg#00206

text.xml.exist

Subject: Re: Function signature

Yes, sorry. Sebastian is right. I didn't see that. The cardinality is a
property of the argument, not of the function. Every argument has a
cardinality.

Wolfgang


On Thursday 23 September 2004 07:55 pm, Sebastian Bossung wrote:
> Hi
>
> I believe getArgumentCount() is just talking about the number of
> declared arguments in the function, not about their cardinalities.
>
> On Thursday 23 September 2004 07:13, finder@xxxxxxxxxxxxxxxxxxxxx
>
> wrote:
> > which will correctly assess the number of required arguments in:
> >
> > fn:blah($a as xs:string, $b as xs:string*)
> >
> > (there is ONE required argument, not TWO).
>
> Objection: This does require two arguments, one of type string and one
> sequence of strings (the sequence may be empty, but there certainly
> has to be a sequence).
>
> fn:blah("123", ()) is a valid invokation
> fn:blah("123") is not!
>
> Sebastian


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise