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

RE: Re: SAXON: Creating multiple output files

Subject: RE: Re: SAXON: Creating multiple output files
From: "SHEIKH Sajjad" <Sajjad.SHEIKH@xxxxxxxxxxx>
Date: Wed, 19 Nov 2003 11:19:31 +0100
saxon multiple output
I want output in HTML format.
Purpose is to generate HTML files on publishing.  Obviously they will be
static html pages.

I already have work it out with batch file.  
Now, I want to convert my batch file code to a java program.  Any
suggestion?

Batch file which generates html using SAXON is as following

Thanks,

/s

Batch File
----------

@echo off

rem Set the top directory you want to start the process from
set topdir=H:\1xml\Enterprise0311141\Enterprise

rem Set the temp directory to write the hierarchy of your folders
set tempdir=C:\temp

rem Set the directory where you have your style sheet
set style=H:\1xml\tree.xsl

rem Set the xml doc you want to look for before generation of html
set look4file=xmlinterlinks.xml

rem dirlist.txt is the temp file under your mentioned tem directory
which your system has created
echo %topdir%> "%tempdir%\dirlist.txt"

rem here system creates the directories and append that to temp file
dirlist.txt
dir "%topdir%" /s /b /ad >> "%tempdir%\dirlist.txt"

rem for each line in dirlist.txt a variable is assigned called p. if
your desired document exist under the folder then it invokes the SAXON
command to generate the html page
for /F "delims=*" %%p IN (%tempdir%\dirlist.txt) do if exist
"%%p\%look4file%" c:\j2sdk1.4.1_05\bin\java -jar
c:\saxon\saxon6_5_3\saxon.jar "%%p\%look4file%" "%style%" >
"%%p\1011.html"



-----Original Message-----
From: yguaba@xxxxxxxxxxxx [mailto:yguaba@xxxxxxxxxxxx] 
Sent: 17 November 2003 22:03
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Re: SAXON: Creating multiple output files


Hello Sheikh, 

On 17 Nov 2003 at 8:48, SHEIKH Sajjad wrote: 

> I want to create multiple output files.
>  
> Scenario:	There are plenty of folders.  Underneath each folder,
there 
> are folders or documents.  Each folder contains a xml document called
> "xmlinterlinks.xml".  
>  
> Since the structure of each document is the same therefore I want to
> use one style sheet for all xml documents.  
>  
> I finally have come to the conclusion of using saxon but unfortunately
> I have no experience in that.  

You can certainly use a single stylesheet to process any number of XML
documents,  
whether or not your XSLT processor is Saxon. 

What format do you want the output in? HTML, plain text, XML etc? 

Who is the output intended for? Web site visitors using their various
different browsers?  
A single person or small team using whatever browser you determine? 

What programming languages (besides XML) are you familiar with? PHP,
Java etc? 

Tell us a little more about your project so that we can make relevant
suggestions. 

Take care, 

Erik 

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


______________________________________________________________
This message has been scanned for all viruses by BTnet VirusScreen. The
service is delivered in partnership with MessageLabs.

This service does not scan any password protected or encrypted
attachments.  

If you are interested in finding out more about the service, please
visit our website at
http://www.btignite.com/internetservices/btnet/products_virusscreen.htm
==============================================================

 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.