[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

how to create variable by comparing two variables usin

Subject: how to create variable by comparing two variables using [not]
From: "Dave Lang emaildavelang@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 14 Oct 2018 19:17:39 -0000
 how to create variable by comparing two variables usin
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.