cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Turner <>
Subject Re: Dynamic WAP problems
Date Thu, 17 Aug 2000 09:15:27 GMT
Sebastien Koechlin wrote:
> Matt Coolidge wrote:
> >
> > Hi everyone. I'm writing a WAP application. Basically, my XSP talks to the
> > database and sticks the resulting DocumentFragment into the output. I can
> > write an XSL stylesheet to make a WAP deck, with a card for each row of
> > data. But it's FAR too big if I do it this way; and WAP phones error out on
> > it.
> Welcome in the marvelous world of WAP :-(
> Currently, there isn't an easy way to split data without doing a query
> everytime. You can write a proxy with XSP, but it's really expensive.

I don't really know what I'm talking about, but.. 
Rick Jelliffe recently announced an application for serving XML
fragments ( To quote from his
email (mentioned at

Fragserver is a Java Web Application designed for running on Apache
(Tomcat, Xalan, Xerces).  It gives two servlets:
  fragbody  retrieves a branch of an XML document, as specified using
an Xpath
  fragserver constructs a small Fragment Context Specification for the
same document and Xpath

For example, if I have the XML document
and I want the fragment  //c  (i.e, the first c element found and its
contents), then I can fetch the fragment body with
and the fcs with"

Possibly useful here; I'm not sure.


> You need to tell cocoon which page you want. You can add
> a parameter to your query, like 'mytodo.xsp?page=4'. Cocoon
> cache will not work on this as the query is alway different.
> To split your data:
> 1. Producer: you can limit your query
> 2. Processor: XSLT/XPath can split your DOM-tree
> 3. Formatter: Currently, XML Formatter can not split data,
>         and Formatter are not designed to do that.
> Forget about Cocoon's goal of a complete separation of the three
> layers.
> --
> S├ębastien Koechlin
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View raw message