Re: reading xml from pipeline into a flow script

2003-06-30 Thread Simon Price
.source.SourceUtil.toDOM( srce ); ... } Hope this helps! Reinhard -Original Message- From: Frank Taffelt [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2003 9:34 AM To: [EMAIL PROTECTED] Subject: Re: reading xml from pipeline into a flow script you can use this snippet: function getStri

RE: reading xml from pipeline into a flow script

2003-06-30 Thread Reinhard Pötz
ent: Monday, June 30, 2003 9:34 AM > To: [EMAIL PROTECTED] > Subject: Re: reading xml from pipeline into a flow script > > > you can use this snippet: > > function getString(src) { > try { > var is = > cocoon

Re: reading xml from pipeline into a flow script

2003-06-30 Thread Frank Taffelt
you can use this snippet: function getString(src) { try { var is = cocoon.environment.resolveURI(src).getInputStream(); return Packages.org.apache.cocoon.components.language.markup.xsp.XSPUtil.getContent s(is); } catch(ex) { print("ex:" + ex); } retur

RE: reading xml from pipeline into a flow script

2003-06-28 Thread Jonathan Spaeth
Title: RE: reading xml from pipeline into a flow script One simple way of accomplishing this is to simply, define pipeline to generate, transform, and serialize the xml.  Then, in the flowscript, simply use the jaxp dom api to load the generated xml: flow() {     var document