[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Variable number of arguments


Subject: Re: [xsl] Variable number of arguments
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Fri, 27 Jan 2006 19:28:07 +1100

> The alternative approach, of representing a variable number of
> arguments with one argument - a list typed with the common sub-type of
> all the permissable arguments, suffers from loss of static typing
> accuracy.

This is not an 1:1 alternative, as one cannot represent as a sequence
a sequence of sequences. So, if the arguments of the function are
sequences, they (all the arguments) cannot be represented as a single
sequence -- a known limitation of XPath 2.0 sequences.


--
Cheers,
Dimitre Novatchev
---------------------------------------
To avoid situations in which you might make mistakes may be the
biggest mistake of all.


Current Thread
Keywords