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

RE: RE: XQuery 1.0 and XPath 2.0 Functions and Operato

Subject: RE: RE: XQuery 1.0 and XPath 2.0 Functions and Operators Version 1.0
From: "ura" <ura@xxxxxxxxxx>
Date: Fri, 7 Sep 2001 22:27:20 +0400
xquery sortby
> The basic idea of having sequences in the data model rather than sets is
> that the result of sorting a node-set can be assigned to a variable,
> something which isn't possible in XSLT 1.0. There are then mechanisms for
> iterating over a sequence or indexing into it.

It isn't clear enough why people always needed to do sorting before it
needed.
What if the new attribute (aka "sort-by") in the variable would be somehow
better (possibly?).

<xsl:variable name="country" sortby="name">
<x><y><xsl:copy-of select="document('c.xml')" /></y>
     <y><xsl:copy-of select="document('d.xml')" /></y></x>
</xsl:variable>

=== *.xml ===
<doc>
  <city name="Munchen" />
  <city name="Berlin" />
</doc>

Might be, the "ready-to-use sorted sets" aren't worse then "sorted
sequences"?
It's interesting to know about the possible motivations against such model
(implementation?)
Though, they were only thoughts, not more.

Taler Andy


 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.