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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>