Victor Okunev wrote:
> Hi All,
> I have an XSLT style sheet that I use to generate an HTML table. Is it
> possible with Forrest v0.7 to perform the transformation as part of
> the site build and include the results under a document's section?
> Here is a pseudo code that kind of illustrates what I am after:
Yes, the Cocoon sitemap enables this and more.
This is a good situation to explain the powers
of teh Cocoon sitemap.
Remove that pseudo-stuff and with another section.
The data table will be inserted in the top of the
Here is the data file xdocs/one-data.xml
Here is the relevant section of the sitemap ...
Browser request is localhost:8888/one-announce.html
So that generates an aggregated xml stream like this ...
... the normal source xdoc, e.g. one-announce.xml
The add-table transformer then strips off the outer wrapper,
copies over the content, deals with the first
element and inserts the table by processing
the element. It serialises as the "xml-document"
which is Forrest's internal format. Forrest takes over
and does the rest of the transforming and rendering.
That is the general idea. There are probably other
ways to do it too.
The new dispatcher will be even more versatile.