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

Re: Using document() for multiple unknown input files

Subject: Re: Using document() for multiple unknown input files
From: andrew welch <andrew.j.welch@xxxxxxxxx>
Date: Wed, 2 Nov 2005 13:38:17 +0000
collection discard document
> Thank you very much for your very helpful input.
> I tried to solve my issue with a collection searching a directory,
> but since this search had to be done multiple times (each time searching an
other directory)
> within my stylesheet, performance was very poor.
> So I did it with an XML help file, which contained my needed information.
> Thanks a lot for your help!

If you are using collection() you probably want to be using
saxon:discard-document() as well:

<xsl:variable name="elems" as="element()*"
select="for $x in
collection('file:///C:/xmldir?select=*.xml;recurse=yes;on-error=ignore')
			return saxon:discard-document($x)//the_elements_that_you_want"/>

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.