Re: Pedagogy of Objects
> 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" 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 David XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
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