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

Re: Dependency Sorting, first of kind

Subject: Re: Dependency Sorting, first of kind
From: James Clark <jjc@xxxxxxxxxx>
Date: Fri, 05 Nov 1999 13:34:02 +0700
what is mean sort dependency
Francis Norton wrote:
> The general answer is that that you can do all the basic set operations
> in XSLT. Use them and strip out your buggy iterative code. I can't
> answer for the performance effects, however!
> I'll write up the following in a note tonight - I have tested them, and
> they all work sweetly:
>         set union (any node in a or in b):
>         <xsl:variable name="x" select="$a | $b" />
>         set intersection (any node in a and in b):
>         <xsl:variable name="x" select="$a[. = $b]" />
>         set difference (any node in a but not in b):
>         <xsl:variable name="x" select="$a[not(. = $b)]" />

$a | $b returns the set of nodes that are members of $a or $b. If this
is what you mean by set union, then the set intersection of $a and $b
should be the set of nodes that are members of both $a and $b. But $a[.
= $b] does not return this; it returns the nodes in $a for which there
is a node in $b with the same value.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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.
First Name
Last Name
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.