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

Re: Processing node-sets in batches

Subject: Re: Processing node-sets in batches
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 15 Mar 2010 21:43:57 +0000
Re:  Processing node-sets in batches
On 15/03/2010 20:37, Jeff Hooker wrote:
<xsl:variable name="setsize">10</xsl:variable> <!


It's much more efficient to use

<xsl:variable name="setsize" select="10"/>

which makes the variable hold a number rather than a document node with a text node child with string value the decimal representation of the number which needs to be cast first to a string, then to a number when used in a numeric context.

Also xslt2 is based on sequences not sets, so the terminology is a bit off (which was why I assumed XSLt1 in my first reply). node-set is the basic datatype in xpath 1, but it doesn't exist in xpath2.

David

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.