You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Skladov, Victor" <Sk...@his.de> on 2001/11/12 16:41:44 UTC

XSP->TEX->PDF

Thanks, David!

I have managed it as following:
I have made the following entries in sitemap:
<map:match pattern="table.xls">
	<map:generate type="serverpages"
src="docs/samples/xsp/table.xsp"/>
	<map:transform src="stylesheets/excel.xsl"/>
	<map:serialize type="html2xls"/>
</map:match>
<map:serializer name="html2xls" mime-type="application/vnd.ms-excel"
src="org.apache.cocoon.serialization.HTMLSerializer"/>

and it works!!!

ONE MORE QUESTION:
How can I tell Cocoon2 to do a few steps, e.g. 
1)XSP + XSL to a TEX-Document, then 
2)TEX-Document to PDF file?


Regards,
Viktor
-----Ursprungliche Nachricht-----
Von: David Rosenstrauch [mailto:darose@dti.net]
Gesendet: Montag, 12. November 2001 15:20
An: cocoon-users@xml.apache.org
Betreff: Re: Cocoon2:XSP->Excel?


One possibility:  you can output the result as .csv (comma delimited)
format.  Excel can read that.

Just output the result as text, with an extension of .csv, and when you
write the result, put commas between the columns.


DR


At 12:06 PM 11/12/01 +0100, you wrote:
>Hi, people!
>
>Does anydody have expirience in creating EXCEL-Tables with XSP?
>What must I do to get a true EXCEL Table from a XSP and XSL?
>
>Thanks in advance
>Viktor
>
>---------------------------------------------------------------------
>Please check that your question has not already been answered in the
>FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
>To unsubscribe, e-mail: <co...@xml.apache.org>
>For additional commands, e-mail: <co...@xml.apache.org> 


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

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>

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

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: XSP->TEX->PDF

Posted by David Rosenstrauch <da...@dti.net>.
* re: the excel stuff:  I would suggest that you use the extension .csv instead of .xls, since you're not actually generating something in the native Excel .xls format

* re: your TEX document question:  Why do you need the intermediate TEX format, if you're eventually going to display it in PDF?  Why not skip TEX and go straight from xml/xsl to PDF?


DR


At 04:41 PM 11/12/01 +0100, you wrote:
>Thanks, David!
>
>I have managed it as following:
>I have made the following entries in sitemap:
><map:match pattern="table.xls">
>         <map:generate type="serverpages"
>src="docs/samples/xsp/table.xsp"/>
>         <map:transform src="stylesheets/excel.xsl"/>
>         <map:serialize type="html2xls"/>
></map:match>
><map:serializer name="html2xls" mime-type="application/vnd.ms-excel"
>src="org.apache.cocoon.serialization.HTMLSerializer"/>
>
>and it works!!!
>
>ONE MORE QUESTION:
>How can I tell Cocoon2 to do a few steps, e.g. 
>1)XSP + XSL to a TEX-Document, then 
>2)TEX-Document to PDF file?
>
>
>Regards,
>Viktor
>-----Ursprungliche Nachricht-----
>Von: David Rosenstrauch [mailto:darose@dti.net]
>Gesendet: Montag, 12. November 2001 15:20
>An: cocoon-users@xml.apache.org
>Betreff: Re: Cocoon2:XSP->Excel?
>
>
>One possibility:  you can output the result as .csv (comma delimited)
>format.  Excel can read that.
>
>Just output the result as text, with an extension of .csv, and when you
>write the result, put commas between the columns.
>
>
>DR
>
>
>At 12:06 PM 11/12/01 +0100, you wrote:
> >Hi, people!
> >
> >Does anydody have expirience in creating EXCEL-Tables with XSP?
> >What must I do to get a true EXCEL Table from a XSP and XSL?
> >
> >Thanks in advance
> >Viktor
> >
> >---------------------------------------------------------------------
> >Please check that your question has not already been answered in the
> >FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> >To unsubscribe, e-mail: <co...@xml.apache.org>
> >For additional commands, e-mail: <co...@xml.apache.org> 
>
>
>---------------------------------------------------------------------
>Please check that your question has not already been answered in the
>FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
>To unsubscribe, e-mail: <co...@xml.apache.org>
>For additional commands, e-mail: <co...@xml.apache.org>
>
>---------------------------------------------------------------------
>Please check that your question has not already been answered in the
>FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
>To unsubscribe, e-mail: <co...@xml.apache.org>
>For additional commands, e-mail: <co...@xml.apache.org> 


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

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>