I'm having trouble comparing two variables to find out which values are
present in one but not the other. My attempts to do this return the
error message:
"A sequence of more than one item is not allowed as the first argument
of fn:tokenize()"
Here's how I'm creating the variables I'm trying to compare:
<xsl:variable name="jpg_all_names"
select="tokenize(distinct-values(($jpg_list_1, $jpg_list_2,
$jpg_list_3)), '\s+')"/>
I suspect you want to tokenize each of the values, combine the results, and
then de-duplicate. That would be
distinct-values(($jpg_list_1, $jpg_list_2, $jpg_list_3) ! tokenize())
Alternatively you could concatenate the strings (with space separation) and
then tokenize the result:
distinct-values(tokenize(string-join(($jpg_list_1, $jpg_list_2, $jpg_list_3),
' '), '\s+'))
Michael Kay
Saxonica
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--