Hi Phillipe,
There's nothing Xalan can really do. Waiting to create the file until the
processor actually has something to write is possible, but tricky to
implement, and not terribly useful in most circumstances.
Your best bet is probably to examine the file once the transformation is
complete and delete if it's empty.
Hope that helps!
Dave
"Philippe
Lambert" To:
<[email protected]>
<[EMAIL PROTECTED] cc: (bcc: David N
Bertoni/Cambridge/IBM)
ion.net> Subject: Simple question about
empty output file
01/09/2004 12:18
PM
Please respond
to xalan-c-users
My application applies a lot of XSL to a continous flow of XML documents.
Sometimes the output document is empty. It is a normal situation, but is
there any simple way to ask Xalan not to create the output file when it is
empty?
Of course, I can change my software to output into a memory stream, test
for
the size of the stream, then write it into a file if it is needed, but I
wonder if Xalan itself can handle this situation.
Thank you!
Philippe Lambert
- Simple question about empty output file Philippe Lambert
- david_n_bertoni
