xsl-list
[Top] [All Lists]

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

2005-03-06 15:08:07
 "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 ..

Translating to 1.0 terminology, I meant that in 1.0 if you pass a node-set
to string() or any function expecting a string, it takes the string value of
the first item in the node-set, treating the node-set as a sequence of nodes
in document order.

Michael Kay
http://www.saxonica.com/



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--