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

RE: Using Saxon 8.5 and collection() to process a dir

Subject: RE: Using Saxon 8.5 and collection() to process a directory of XML files
From: "Mohamed Elhag" <mohamed.elhag@xxxxxxxxx>
Date: Thu, 4 Aug 2005 14:57:03 +0100
mohamed elhag
I manage to get this working under Saxon by simply using the required
name for files and folders as variables, and everything seem to be
generated as required
e.g
<xsl:result-document encoding="UTF-8"
href="Templates/{$groupName}/{concat($className,'.java')} "
method="text">

Regards

Mohamed Elhag

-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx]
Sent: 04 August 2005 13:56
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Using Saxon 8.5 and collection() to process a
directory of XML files


> Is it possible to get the filenames so
> that I can create the corresponding output folder?

You can call document-uri() on each of the document nodes in the
sequence and get back a uri-ified version of the filename.

>so I want to try and achieve it all in a
> single stylesheet, rather then needing the host language.

I'm also interested in this. I think (could Mike confirm?) that the main
disadvantage of going this route is that all documents processed will
(or might) hang around in memory rather than being processed and dumped
one at a time as would happen if you arrange the processing pipeline
outside xslt.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.