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

RE: concatenating 1-n XML files

Subject: RE: concatenating 1-n XML files
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Tue, 12 Nov 2002 14:55:58 -0000
concatenating xml
> 1. Can I use the document() function with wildcards in the 
> doc-name ? something like: <xsl:for-each 
> select="document('name*.xml')"> ? 

Your best bet is to write a shell-script that creates an XML file
index.xml of the form
<index>
<d>name001.xml</d>
<d>name002.xml</d>
etc
</index>

and then your transformation is simply:

<xsl:template match="/">
  <big-doc>
  <xsl:copy-of select="document(/index/d)"/>
  </big-doc>
</xsl:template>
> 
> 2. If 1. works would  a large number of files (000's) have an 
> adverse effect on performance ? Or once a document is 
> processed is it retained in memory or released ? Is there an 
> upper limit of elements that can be processed ? I'll be using xalan.

You will need a lot of memory. Doing it with SAX would be much more
efficient.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.