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

Re: Pedagogy of Objects

Subject: Re: Pedagogy of Objects
From: David Carlisle <davidc@xxxxxxxxx>
Date: Sat, 1 Apr 2000 10:47:01 GMT
re pedagogy

> There a difference between a "result tree fragment" and a "node
> set". But isn't saving a selected & sorted list of nodes saving a node
> set?

No, it isn't according to the standard

In order to sort the list you need something like

<xsl:variable name="x">
  <xsl:for-each select="zzzz">
    <xsl:sort select="@qqqq"/>
    <xsl:copy-of select="."/>
  </xsl:for-each>
</xsl:variable>

but any use of xsl:variable with non empty content produces a result tree
fragment so although this is basically the same as a node set
containing one node with child zzzz nodes in sorted order,
you can not access those nodes by any standard means.

msxsl peview currently doesn't distinguish so there you can go
select="$x/zzzz[3]" to get the third zzzz in sorted order, 
xt and saxon are more conformant and they supply an extension
function that converts the rtf back to a node set
select="xt:node-set($x)/zzzz[3]

David


 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.