[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Intersection of two sets based on a subset of fiel
On Sat, 23 May 2020 at 05:24, Mukul Gandhi gandhi.mukul@xxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > On Thu, May 21, 2020 at 7:53 PM David Carlisle d.p.carlisle@xxxxxxxxx < > xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > >> if $set1 is a your sequence of books and $set2 is your sequence of Music >> then you seem to want >> >> $set1[concat(Author,'#',Country)=$m/concat(Author,'#',Country) ] >> >> assuming # doesn't appear in Author or Country names. >> > > Nice solution. > short and easy to read but probably not that efficient for long lists (unless saxon kindly rewrites this automatically to use a hashed key lookup:-) > There seems to be a little type above. $m should be $set2? > er yes, sorry. > > > -- > Regards, > Mukul Gandhi > XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list> > EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/2739265> (by > email <>)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|