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

Re: Create text file

Subject: Re: Create text file
From: David_Marston@xxxxxxxxx
Date: Tue, 27 Jun 2000 16:56:30 -0400
create text
Håkan Pettersson asks:
>Given following element:
><image name="abc" extension="txt">
>          This text should be outputted!
></image>
>Is it possible to create a text file
>called "abc.txt" write the text and the close
>the file.

In general, XSLT processors don't know that much about
the destination of their output. Others have already
pointed out that several popular processors have an
extension that could do this, and have reminded you to
use method="text" output.

For the real purist, I think that you could generate an
elaborate bundle of shell scripts (batch files, or
whatever they are in your environment) that would do the
work, but the combination would be quite inefficient.
The more of those <image> elements you had, the worse
it would be.

Note that either the pure or impure approach could run
into a problem if more than one image has the same
values for both attributes, since it would be creating
a file name.ext more than once.
.................David Marston


 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.