At first glance it seems that a call to string-join() is missing, whose
results would stick together the many strings into one, that then can be
used as the single string first argument of tokenize()
On Sun, Oct 14, 2018 at 12:17 PM Dave Lang emaildavelang(_at_)gmail(_dot_)com <
xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:
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+')"/>
<xsl:variable name="jpg_all_links" select="sort(($jpg_link_a,
$jpg_link_b, $jpg_link_c)/tokenize(., '[/=]') [last()])"/>
These variables create lists of jpg file names. I want to see which (if
any) files are referenced in $jpg_all_links but not in $jpg_all_names
To do that I'm trying:
<xsl:variable name="jpgs_in_xml_not_directories"
select="($jpg_all_links)[not(. = $jpg_all_names)]"/>
But it doesn't work.
Any assistance, as always, appreciated!
dave
--
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
Never fight an inanimate object
-------------------------------------
To avoid situations in which you might make mistakes may be the
biggest mistake of all
------------------------------------
Quality means doing it right when no one is looking.
-------------------------------------
You've achieved success in your field when you don't know whether what
you're doing is work or play
-------------------------------------
To achieve the impossible dream, try going to sleep.
-------------------------------------
Facts do not cease to exist because they are ignored.
-------------------------------------
Typing monkeys will write all Shakespeare's works in 200yrs.Will they write
all patents, too? :)
-------------------------------------
Sanity is madness put to good use.
-------------------------------------
I finally figured out the only reason to be alive is to enjoy it.
--~----------------------------------------------------------------
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
--~--