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

RE: How to process a list of files

Subject: RE: How to process a list of files
From: "Shailesh Shinde" <shailesh@xxxxxxxxxxxx>
Date: Tue, 8 Nov 2005 16:27:39 +0530
create list of files
Hi,

With the given reference of http://dpawson.co.uk/xsl/sect2/N5167.html there
is <xt:document method="html" href="sect{$docnumber}.html"> which generates
the output files as sect1.html, sect2.html and so on.

I have one query! How to get filename.html instead of sect1.html in my case.

Thanks,
shailesh



-----Original Message-----
From: Ragulf Pickaxe [mailto:ragulf.pickaxe@xxxxxxxxx] 
Sent: Tuesday, November 08, 2005 2:10 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  How to process a list of files

Hmmmmm, yes, I can see that this is what you actually where asking for.

Multiple input to multiple output (N inputs to N outputs) I usually
make in the programme, that calls the transformation.

I would usually load the ini-file (the one with the names of the input
documents) into a separete document, then iterate over each node,
using - in my case - the C# language for this. For each of these
files, I would then make a transformation.

A more elaborate scheme would be to process the ini-file using XSL and
use the document function, and for each of those create a variable
holding the root of the document (or create a variable holding the
root of each document), then process these. This, I think, is what you
are trying to do. The problem is with this approach, is that
multiple-document output is not inherently possible using XSLT 1.0. I
think there are extension functions - depending on the parser in
question - that can do this, but it is not included in the language
per se.

I think a search google search for "multiple output files" +"XSLT".
You can perhaps get some inclination of a solution from dpawsons site:
http://dpawson.co.uk/xsl/sect2/N5167.html

I hope this helps.

Regards,
Ragulf Pickaxe :-)

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.