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

Re: Tricky XPath Question

Subject: Re: Tricky XPath Question
From: disco <disco@xxxxxxxxxxxxxxx>
Date: Wed, 1 Dec 1999 15:46:46 -0500 (EST)
xpath algebra
> <xsl:for-each select="term[not(preceding::term=.)]">
>   <xsl:value-of select="."/>
> </xsl:for-each>

Okay, I understand this, but it leaves me wondering about the algebra
sitting behind XPath. I would have thought that the equality relation on
node sets was "for all" (ie. for all elements in node set A, all elements
in node set B are equal to each of them) but instead it is "for at least
one" (ie. for at least one element in node set A, there is at least one
element equal to it).

This is confirmed by the spec: (S3.4) "If both objects to be compared are
node-sets, then the comparison will be true if and only if there is a node
in the first node-set and a node in the second node-set such that the
result of performing the comparison on the string-values of the two nodes
is true." But it leaves me curious whether standard query algebra (eg. the
relational algebra, used in RDBMS) had much influence on the language.

Regardless, thanks for the help.

Dan


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


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.