cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Fagnani-Bell <jus...@paraliansoftware.com>
Subject Re: Running command-line programs in a pipeline
Date Wed, 02 Oct 2002 22:25:47 GMT
Peter,

You could certainly write your own serializer to do this. I haven't 
written a serializer, but I'm pretty sure the input needs to be SAX 
events, so the only ways you could use XSLT to output LaTeX is if you 
did the transformation within the serializer, or wrapped the LaTeX in 
XML.

Another solution would be to have an intermediary step where you 
transform into an XML dialect that your LaTeX serializer understands. 
This is how FOP works, and xsl:fo is the intermediary step. I would 
definitely see if you could use xsl:fo for this purpose so you don't 
have to reinvent the wheel.

As for calling the command line program you can use Runtime.exec() and 
write and read from the Process object that it returns. There are 
inherent scalability problems with this approach though. I'm not 
familiar with LaTeX, are you sure there aren't and Java based LaTeX 
tools?

Justin

On Wednesday, October 2, 2002, at 01:38  AM, Peter Flynn wrote:

> Is it possible to specify a pipeline which instantiates a non-SAX
> transformation (eg running some arbitrary commandline program on
> the pipeline content or a generated file and serving the result)?
>
> An example would be to transform XML to LaTeX with XSLT and then
> run LaTeX in order to serve DVI instead of PDF.
>
> ///Peter


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message