RE: MS-FO-LC1-034: fn:concat without arguments not useful

> Class: Technical
> 				
> Xpath 1.0 concat required at least two args. 
> 
> Concat() without arguments is of very limited use and should 
> be disallowed (automatically generating code can easily 
> recognize this case).
> 
> Concat with one argument can be useful if the argument is 
> extended to allow sequences and should be kept in that case. 
> Otherwise it could still be cut.
>

It is extra work for an implementation to check that the number of arguments
is at least two, and this arbitrary restriction serves no useful purpose.

Stylesheets that generate stylesheets, or that generate XPath expressions
dynamically, are very common and we want to make it easy.

Michael Kay 

Received on Tuesday, 1 July 2003 13:50:59 UTC