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

Re: multiple output files/getting command-line parameters in

Subject: Re: multiple output files/getting command-line parameters in XT
From: eduardo <Eduardo.Gutentag@xxxxxxxxxxx>
Date: Tue, 13 Jul 1999 07:22:51 -0700 (PDT)
java command line parameters
>  From: Sebastian Rahtz <sebastian.rahtz@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
>  Date: Tue, 13 Jul 1999 09:25:03 +0000 (GMT)
>  To: xsl-list@xxxxxxxxxxxxxxxx
>  Subject: multiple output files/getting command-line parameters in XT
>  
>  Obviously it is not standard, but how, using XT, can I find the name
>  of my output file? If I do
>  
>    java com.jclark.xsl.sax.Driver a.xml a.xsl a.html
>  
>  then in "a.xsl" I am using James' extension to split "a.xml" into several
>  parts. Naturally, I can make references _between_ these files work ok, 
>  but if I need to make them refer back to their parent stub, "a.html"?
>  I don't know what the `master' document is called.

Haven't tried this, so caveat emptor, but in a Unix environment I'd
set an environment variable, e.g.
% setenv OUTPUT a.html
% java com.jclark.xsl.sax.Driver a.xml a.xsl $OUTPUT

and then I'd use system-property() inside the stylesheet to get its value,
as in
<xsl:variable name="Master" expr="system-property(OUTPUT)"/>

Eduardo

>  
>  Yes, I can start a new file as soon as I enter the document, under my
>  control, but in that case how can I control the name of that from the
>  Java command-line? 
>  
>  More generally, relating to this question of splitting into multiple
>  files, I take it we are NOT going to see any formal support for this
>  in XSL 1.0?
>  
>  Would someone care to comment on how things work in an environment where
>  an XML file is quietly transformed to HTML by a server, for older
>  browsers? My test file is 3 mbytes of detailed gibberish, and the
>  chances are that I will currently split it into many small parts, with 
>  some summary documents that reference those parts. How does the server 
>  engine manage this, not having `files' lying around? 
>  
>  sebastian
>  
>  
>   XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 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.