Yeah, i had it working like after i wrote the first post and its great for txt files but kind of thought it was a bit hacky overall. I wanted a solution that could handle any file type and be used in loads of different contexts and i think Geoffs sugestion about creating a Source is just what we need, i hope others think so too. Paul
--- On Sat, 18 Oct 2003, Paul Crabtree wrote: > Hi, i've been using Cocoon 2.1 for a few months now but i've only just > joined this mailing list so i apologise if this sort of question has > been and gone. > > Here's what im trying to do: > > "Provide a form for users to upload their CSV files. When the user > uploads the CSV file Cocoon takes the file and passes it to the text > generator and through the chaperon transformers to do a similar thing to > what the chaperon CSV sample does now." > > I dont think i need to save the file at all but i cant work out how to > pass it to the text generator, XSP? > > Is this possible? You can write a XSP file, which read the FileParts and generate the output with it, by simple dumping it between two <text> elements. Something like that <text xmlns="..">part.toString()</text> Stephan. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _____________________________________________________________________ This e-mail has been scanned for viruses by MCI's Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
