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

Working with Collections

Subject: Working with Collections
From: "Craig Branham" <ccbranham@xxxxxxxxxxx>
Date: Mon, 28 Apr 2008 09:41:07 -0700
 Working with Collections
Dear List:

I have a set of large input files (all with the same structure) to process with collection() and an external collection file that shows which input files to process, and in what order, to a single output file.

Is there a way to join all these documents below the top level element and process their contents as though they were a single input file?

A <xsl:for-each/> approach processes each document in the collection in turn, which I don't want (I need to be able to traverse the entire collection):

<xsl:template match="/">
       <xsl:for-each select="collection('collection.xml')">
           <xsl:apply-templates select="yourtop/yourcontent"/>

I could also abandon using collections and use:


but I would rather have a separate collection file for extensibility and flexibility if possible.

I've tried creating a temporary tree, but have run into memory problems doing this that I'd rather not deal with.

Does anyone have any advice?

Many Thanks,

Craig B.

Current Thread


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.
First Name
Last Name
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.