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

Re: Tutorial for collection()

Subject: Re: Tutorial for collection()
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Thu, 17 May 2007 15:57:32 +0100
Re:  Tutorial for collection()
On 5/17/07, Jesper Tverskov <jesper@xxxxxxxxxxx> wrote:
As a follow-up to "the collection() function" thread,
http://www.biglist.com/lists/xsl-list/archives/200705/msg00369.html

I have made a tutorial for how to use the collection() function in XSLT 2.0:

"Collection() and REGEX in XSLT",
http://www.xmlplease.com/collection

You dont need the xpath for construct "for $x in ... return $x":


<xsl:for-each select="for $x in
collection('file:///c:/someDir/?select=*.*') return $x">

as it's equivalent to:

<xsl:for-each select="collection('file:///c:/someDir/?select=*.*')">

...unless you're using saxon:discard-document(), which frees up the
memory after the document is processed (if your collection is large
you quickly run out of memory):

http://ajwelch.blogspot.com/2006/11/using-collection-and-saxondiscard.html

cheers
andrew

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.