[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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 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
|
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
|