Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

The syntax for xml-xalan, from its documentation, is:
$tr->transform_to_file($parsed, $compiled, $dest_file)

Where "$parsed" is the input xml file, $compiled is the input XSL, and $dest_file is the output file.

What I would like to do is instead of outputting the file keep it in memory (preferably as a string or array of lines).

Is there a way to do this, or do i need to output a temp file and then read that back into the system.

Replies are listed 'Best First'.
Re: XML-Xalan Question
by marto (Cardinal) on Jul 27, 2005 at 15:03 UTC
    Hi,

    something like:
    my $res = $tr->transform_to_data($parsed, $compiled);
    Hope this helps

    Martin