On Tue, 2004-05-18 at 13:47, Gunter D'Hondt wrote: > (sorry for the previous mail; accidentally pressed Send) > > Indeed I'm not using flowscript but apples (Cocoon block - sames as > flowscript but in Java code)
Hmm... I don't think that's a good description of apples. Serves the same purpose though. > ; but as I can read from the javadocs from > PipelineUtil: > > Utility class to process a pipeline to various destinations. This class > must be setup from the flowscript before being used. This means that > instances must be created with > cocoon.createObject(Packages.org.apache.cocoon.components.flow.util.Pipe > lineUtil); > > So this means that I cannot use this class right? > > Any other ideas?? For your original problem: simply use the javax.xml.transform API. (However, little reason to use the Cocoon for that?) If you want to get your data through a pipeline defined in the sitemap, lookup the SourceResolver component (from the ServiceManager) and resolve a cocoon:/ URL. This will then give you the ability to execute the pipeline and get the result as bytestream, or as SAX events (by casting the Source to XMLizable), or if you want it as a DOM tree, look at the SourceUtil.toDOM utility method. > > Gunter D'Hondt > > > > -----Original Message----- > From: Gunter D'Hondt [mailto:[EMAIL PROTECTED] > Sent: dinsdag 18 mei 2004 13:46 > To: '[EMAIL PROTECTED]' > Subject: RE: doing a Cocoon XSL transformation inside java code > > > Indeed I'm not using flowscript but apples (Cocoon block - sames as > flowscript but in Java code); but as I can read from the javadocs from > PipelineUtil: > > > Gunter D'Hondt > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Joerg Heinicke > Sent: maandag 17 mei 2004 23:14 > To: [EMAIL PROTECTED] > Subject: Re: doing a Cocoon XSL transformation inside java code > > > On 17.05.2004 16:14, Gunter D'Hondt wrote: > > > Hello, > > > > Inside my apple (Cocoon block) I've got a org.w3c.dom.Document (coming > > from a org.apache.excalibur.source.Source-object) which I'd like to > > transform into another org.w3c.dom.Document using an XSL > > transformation (stylesheet is available thru a Source-object); how can > > > I do this with the Cocoon classes? > > > > So something like: > > I'm not familiar on this, so I can't help you directly with it. I just > want you to suggest to pass the original document to a pipeline > and get the transformed document back from there. There is a > PipelineUtil.processToDOM(uri, viewData) method: > http://wiki.cocoondev.org/Wiki.jsp?page=FOM_Cocoon. But I don't know > exactly how to combine those pieces as you don't use flowscript, do you? > > Joerg -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
