Re: [xslt] Incremental output



On Fri, Feb 07, 2003 at 11:56:27AM -0500, Daniel Veillard wrote:
> On Fri, Feb 07, 2003 at 05:51:23PM +0100, Le grande pinguin wrote:
> > On Fri, Feb 07, 2003 at 04:48:30PM -0000, spinmar@interfree.it wrote:
> > > 
> > > Hi,
> > > 
> > > I have a question about if it's possible to send the output of the trasformation incrementaly.
> > > 
> > > Now in my apache module I build my file xsl, then applying a xsl I send the output to a string and then I send it to the client.
> > > 
> > > 
> > > The problem is that the effect is that the client sees the output all in one time. 
> > > 
> > > Is it possible to send the output to client incrementally?  
> > 
> > Yes, you need to look at the IO/buffer API
> > (even so transformation usually is so fast it's hard to justify
> > the added complexity).
> 
>   Well I would answer no. Depends what you mean by incremental. 

Yes, missunferstanding i guess ;-) The transformation happens in one
step, i interpreted the orig. post a bit too literal (.. output of the
transformation). Using a custom output buffer saves one from allocating
a memory buffer to capture the transformation output. Iff one sends back
the response in a chunked manner (a la HTTP/1.1) it _could_ result in 
a possible preceived faster download speed.

> Currently
> libxslt generates an output tree and then that tree is serialized in a
> second step. Most processors actually serialize as soon as possible and
> don't really build the output tree. From that view point, libxslt doesn't
> work in an incremental fashion. That could be added but it's not trivial.

>From my experience: output serialisation seems to fast to bother optimizing.

 Thanks for your work

   Ralf Mattes

> Daniel
> 
> -- 
> Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
> veillard@redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
> http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
> _______________________________________________
> xslt mailing list, project page http://xmlsoft.org/XSLT/
> xslt@gnome.org
> http://mail.gnome.org/mailman/listinfo/xslt



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]