Hi Chris,

This one is nice, but I don't want to use  the whole Cocoon Application,
especially the SiteMap. Yes, All I wanna do is physically open an XML file
(follows the GNumeric format, I suppose)and perhaps an XSL, read and then
the Excel file will be generated automatically. That's why I tried to use
the HSSFSerializer directly in my application, but I didn't managed to do
that.

Any idea?

regards,

nandipinto.


----- Original Message -----
From: "Shaw, Chris" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 26, 2002 4:47 PM
Subject: RE: Serializing XML data to Excel format


> Sorry,
>
> Not 100% sure what you want to achieve.
>
> You want to physically open and read an XML file in, say, a Generator and
> then output it as an Excel file?
>
> I apologise, I mis-read your original mail, I don't use the API I just do
> the following:
>       <map:serializer name="xls"
> src="org.apache.cocoon.serialization.HSSFSerializer"
> mime-type="application/vnd.ms-excel"/>
> snip, snip
>       <map:match pattern="*.xls">
>         <map:generate src="docs/{1}.xml"/>
>         <map:transform type="xslt"
> src="stylesheets/page/simple-page2xls.xsl"/>
>         <map:serialize type="xls"/>
>       </map:match>
>
> What is it that you want to use the API for?
>
> Chris
> -=-=-=
>
> -----Original Message-----
> From: nandipinto [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday 26 November 2002 10:37
> To: [EMAIL PROTECTED]
> Subject: Re: Serializing XML data to Excel format
>
>
> Hi Chris,
>
> I've check this one, but what I need to know is how to use the API (java
> class) directly in the my java program.
> I know there is one java class called HSSFSerializer, but it only has the
> method : setOutputStream(java.io.OutputStream), how do I set the input
> stream (which I think is the XML file), call another methods, etc?
>
> thanks,
>
> nandipinto.
>
> ----- Original Message -----
> From: "Shaw, Chris" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, November 26, 2002 4:08 PM
> Subject: RE: Serializing XML data to Excel format
>
>
> > Hi,
> >
> > Take a look at:
> > http://xml.apache.org/cocoon/userdocs/serializers/xls-serializer.html
> >
> > Works quite well.
> >
> > Chris
> > -=-=-=
> >
> > -----Original Message-----
> > From: nandipinto [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday 26 November 2002 10:15
> > To: [EMAIL PROTECTED]
> > Subject: Serializing XML data to Excel format
> >
> >
> > Hi all,
> >
> > How do I serialize XML data into Excel format using the Cocoon API
> directly?
> > Thanks for your help.
> >
> > regards,
> >
> > nandipinto.
> >
> >
> > ---------------------------------------------------------------------
> > Please check that your question  has not already been answered in the
> > FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> >
> > Any e-mail message from the European Central Bank (ECB) is sent in good
> faith but shall neither be binding nor construed as constituting a
> commitment by the ECB except where provided for in a written agreement.
> > This e-mail is intended only for the use of the recipient(s) named
above.
> Any unauthorised disclosure, use or dissemination, either in whole or in
> part, is prohibited.
> > If you have received this e-mail in error, please notify the sender
> immediately via e-mail and delete this e-mail from your system.
> >
> >
> > ---------------------------------------------------------------------
> > Please check that your question  has not already been answered in the
> > FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> >
> >
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
> Any e-mail message from the European Central Bank (ECB) is sent in good
faith but shall neither be binding nor construed as constituting a
commitment by the ECB except where provided for in a written agreement.
> This e-mail is intended only for the use of the recipient(s) named above.
Any unauthorised disclosure, use or dissemination, either in whole or in
part, is prohibited.
> If you have received this e-mail in error, please notify the sender
immediately via e-mail and delete this e-mail from your system.
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to