ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Koberg <...@koberg.com>
Subject Re: I/O redirection for XSLT task?
Date Thu, 06 Nov 2008 15:24:36 GMT

On Nov 6, 2008, at 10:02 AM, Ron Van den Branden wrote:

> Hi,
>
> Robert Koberg schreef:
>>> I'm wondering if is it possible to specify I/O redirection for the  
>>> <xslt> task? If not, are there workarounds to get STDOUT and  
>>> STDERR from XSLT transformations?
>>
>> If you can use XSL 2.0  then there is the xsl:result-document which  
>> lets you write where you want.
>>
> Thanks, actually I am using <xsl:result-document> in those XSLT 2.0  
> stylesheets without problems, but those can't redirect the STDOUT  
> and STDERR from the transformation process, can they?

Oh, well you could:

$ ant mytask > some.txt

You could also implement your own:
http://www.saxonica.com/documentation/javadoc/net/sf/saxon/event/Emitter.html

best,
-Rob

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message