|
From: McDonald, B. <Bru...@ba...> - 2003-09-17 14:23:02
|
All of these solutions are good and as you rightly point out - uncoupling the conversion code from babeldoc will not be a pleasant job. Additional thoughts: 4. Implement as a web service accepting either SOAP messages or just straight HTTP POSTS with parameters. 5. Placing babeldoc in a EJB container and submitting the document from some programmatic means, possibly via JMS. regards, Bruce. -----Original Message----- From: David Glick [mailto:dg...@co...] Sent: Wednesday, September 17, 2003 9:38 AM To: bab...@li... Subject: Re: [Babeldoc-devel] Running a transformation without the command line If I understand what you're trying to do, I can think of several options: 1. You can use the Scripting stage to create a script that listens on a socket for a stream to appear and places it into the pipeline document for conversion 2. You can send an e-mail to the EmailScanner to get the document into Babeldoc for conversion 3. You can use the ExternalApplicationScanner to create your own program to accept the flatfile and feed it into Babeldoc. I don't think it's a trivial task to tear out the flatfile coversion piece into a standalone class, but Bruce or Dejan can probably provide better insight if that's your intention. Hope this helps, David On Tuesday 16 September 2003 5:23 pm, Wil...@co... wrote: > I really like the flat file handling and was wondering in general if it's > possible to strip out any particular module and run it on it's own without > loading and saving files to disk or using the command line. I'd like to be > able to take a file that was submitted via a browser and do a file > translation. Can you point me in the right direction in the code where I > might be able to plug into the babeldoc framework? So I'm thinking > something like a class that takes a string (the csv input) and returns a > string (the xml response) rather than providing a file name. I'm just > starting to look at the source code and could figure this out eventually > but I thought I'd ask the experts to get a head start! > > Thanks > > --------------------------------------------------- > Will Kriski, M.Sc, P.Eng. > DeltaEffects Inc. > (403) 850-7159 > http://www.deltaeffects.com > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Babeldoc-devel mailing list > Bab...@li... > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel -- David Glick Transmit Consulting, Inc 619-475-4052 dg...@tr... ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Babeldoc-devel mailing list Bab...@li... https://lists.sourceforge.net/lists/listinfo/babeldoc-devel |