cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neil Bacon" <>
Subject RE: Need help on generating excel
Date Mon, 08 Mar 2004 22:06:00 GMT
If you get different behavior from your xsp than from a file generator
that suggests the stream of generated SAX events is not the same (even
though when serialized as XML it looks the same). You could try using the
LogTransformer to see how the two SAX streams differ.
But first I'd examine the transformed XML in both cases as that might be
enough to point you in the right direction.
Maybe the xsp isn't using namespaces correctly.

-----Original Message-----
Behalf Of Anna Bikkina
Sent: Tuesday, 9 March 2004 8:31 AM
Subject: Re: Need help on generating excel

Can someone please answer my question.

Thanks in advance,

On Friday 05 March 2004 04:47 pm, Anna Bikkina wrote:
> Hi,
> I have a application that has to generate html and excel with the same
> For now  I am trying to have 2 buttons one which would perform the query
> and display it in html
> 	 <map:generate src="security.xsp" type="serverpages"/>
>         <map:transform src="context:/historyserver/styles/search.xsl"/>
>         <map:serialize/>
> where search.xsl is written to convert data to html tables.
> I have another button which converts the same data to excel . It performs
> query to the database and is expected to display data in excel. I am using
> the org.apache.cocoon.serialization.HSSFSerializer to perform this.
> 	 <map:generate src="security.xsp" type="serverpages" label="raw"/>
>         <map:transform src="context:/historyserver/styles/page2xls.xsl"/>
>         <map:serialize type="xls"/>
> The first one works but the second one does not create a excel file. It
creates an ill formatted html.
> When I view the xml that is  generated using views(with label raw) and
> the content to a xml file and use that as input to transform and then
> serialize to xls that works. It displays the output in excel.
>  I am not understanding where it is going wrong.
> Can someone please tell me where I am going wrong. I have been trying to
> work on my sitemap and xsl files for over 2 days now but could not find
> solution.
> Thanks,
> Anna.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message