You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Denis Thierry <de...@aic-info.com> on 2002/06/13 17:44:35 UTC
Trouble with Views and XSP ...
Hi all,
Sorry if this already came but I got trouble using views and XSP generated
data.
I designed an xsp file that generates some raw data that I want to see in
HTML, PDF or XLS format ...
Hence I created the following:
<map:view name="scribeIt-html" from-label="raw-data">
<map:transform src="stylesheets/scribe2html.xsl"/>
<map:transform src="stylesheets/papyrus.xsl"/>
<map:serialize/>
</map:view>
<map:view name="scribeIt-pdf" from-label="raw-data">
<map:transform src="stylesheets/scribe2fo.xsl"/>
<map:serialize type="fo2pdf"/>
</map:view>
<map:view name="scribeIt-excel" from-label="raw-data">
<map:transform src="stylesheets/scribe2xls.xsl"/>
<map:serialize type="xls"/>
</map:view>
<map:pipiline>
...
<map:match pattern="scribeIt.html">
<map:generate type="serverpages" src="docs/scribeIt.xsp"
label="raw-data"/>
<map:transform src="stylesheets/scribe2html.xsl"/>
<map:transform src="stylesheets/papyrus.xsl"/>
<map:serialize/>
</map:match>
...
</map:pipeline>
and finally I have links defined as scribeIt.html?cocoon-view=scribeIt-pdf
I do not get errors but the view does not access to the full generated file
from the xsp generator!!!
BTW I'm using Tomcat 4.03, JSK1.4 and Cocoon202
Denis
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org