cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Turner <j...@socialchange.net.au>
Subject Parsing CLOBs with a taglib (was: Re: CocoonFromServlet example not working)
Date Thu, 29 Mar 2001 14:31:50 GMT
Hi Sharath,

Attached are two example taglibs. The first simulates an esql query
returning a String containing XML. The second takes this XML string,
parses it, and attaches it to the generated output, which could then by
styled with XSLT.

If you get stuck, let me know :)

--Jeff


On Wed, Mar 28, 2001 at 05:30:22PM -0300, Sharath Chandra wrote:
> Truner,
> i got the flow but it would be a greater help if you can send me some
> examples.
> Thanks ,
> Sharath.K
> 
> ----- Original Message -----
> From: "Jeff Turner" <jeff@socialchange.net.au>
> To: <cocoon-users@xml.apache.org>
> Sent: Wednesday, March 28, 2001 9:47 AM
> Subject: Re: CocoonFromServlet example not working
> 
> 
> > On Tue, Mar 27, 2001 at 01:17:38PM -0300, Sharath Chandra wrote:
> > > Anjul, Thanks for your prompt reply. I never tried esql taglibs but i
> > > think it helps you build a XML. but my problem is i have a XML's
> > > already in Database as CLOB (character Large objects) . And they are
> > > different. So i want to fetch them and pass them to Cocoon.
> > > Any ideas ??
> >
> > You could extract the relevant data with esql, which would return it as
> > a string. Then write a simple taglib which parses that string into a
> > DOM, and copy DOM's root element to the outputted XML.
> >
> > Um.. if you're new, that probably doesn't make sense ;) If you like I
> > can put together an example tomorrow.
> >
> > --Jeff
> >
> > > Thanks
> > > Sharath.K
- 

Mime
View raw message