RE: [xsl] A sequence of more than one item is not allowed as the [nth] argument of [function]

Subject: RE: [xsl] A sequence of more than one item is not allowed as the [nth] argument of [function]
From: Mukul Gandhi <mukul_gandhi@xxxxxxxxx>
Date: Sat, 5 Mar 2005 21:16:31 -0800 (PST)
Hello Mr. Kay,

You are saying..
 "With XSLT 1.0, and with a 2.0 processor in 1.0 mode,
when you pass a sequence to concat() or string() it
will use the first item in the sequence and ignore the
rest". 

IMHO, in XSLT 1.0 mode using sequence as argument to
concat() or string() should give an *error*.. As
argument of type sequence is not allowed on concat()
and string() in XPath 1.0 ..

The new string-join() function is great!

Regards,
Mukul 

--- Michael Kay <mike@xxxxxxxxxxxx> wrote:
> 
> With XSLT 1.0, and with a 2.0 processor in 1.0 mode,
> when you pass a
> sequence to concat() or string() it will use the
> first item in the sequence
> and ignore the rest.
> 
> With XSLT 2.0 "we" decided that was a bad idea, so
> it's now an error.
> 
> The way to concatenate all the strings in a sequence
> into a single string is
> the new string-join() function.
> 
> Michael Kay
> http://www.saxonica.com/



	
		
__________________________________ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

Current Thread