cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@s-und-n.de>
Subject RE: Generating pipeline's content to xml
Date Tue, 19 Feb 2002 11:47:21 GMT

> Rogier Peters wrote:
> 
> Hi,
> 
> I'm looking for a way to generate a pipeline's content for a given url,
> instead of the result of its execution. Basically I'd be asking cocoon:
> what pipeline would you use for this url?
> 
> In other words: the url:
> http://localhost:8080/hello.html.sitemap 
> 
> would have to yield the response:
> <map:match pattern="hello.html">
> 	<map:generate src="docs/samples/hello-page.xml"/>
> 	<map:transform src="stylesheets/page/simple-page2html.xsl"/>
> 	<map:serialize type="html"/>
> </map:match>
> 
> I realize this example would be easily solved by xls-transformation of
> the sitemap, but afaik this isn't possible for more complex mappings.
> 
Yes, a stylesheet would fail as soon as you use pattern matching or
selectors or actions delivering values.

> I'm guessing the best/quickest/only solution would be to write a custom
> generator for this. Any other suggestions?
> 
Hm, I think this is a use-case for the views concept of Cocoon, so
requesting http://localhost:8080/hello.html?cocoon-view=sitemap should
deliver your above example in XML. If you want to write a custom generator
you might end up with reimplementing all the sitemap logic.

I haven't looked into the new treeprocessor of Cocoon, but I feel that it
might be rather simple to extend it with this special view.

What do you think, Sylvain?

Carsten


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message