How to use xls-serializer processor

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to use xls-serializer processor

julien-29

Hello,
 
I want to create un Excel file.
I try to use xls-serializer like the converter user guide.
But it doesn't work.
 
My model.xpl :
<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
          xmlns:oxf="http://www.orbeon.com/oxf/processors">
 

<p:processor name="oxf:xls-serializer">
 <p:input name="config">
  <config template="oxf:/apps/JBIT-calculator/test.xls">
  </config>
 </p:input>
 <p:input name="data">
 <a>
<b>10</b>
</a>
 </p:input>
 <p:output name="data" id="xls-binary"/> </p:processor>
 
<!-- Serialize -->
<p:processor name="oxf:http-serializer">  <p:input name="data"
href="#xls-binary"/>  <p:input name="config">
  <config>
   <header>
    <name>Content-Disposition</name>
    <value>attachment; filename=test.xls</value>
   </header>
  </config>
 </p:input>
</p:processor>

</p:config>
 
In my template test.xls I put this format : # ##0;"/a/b" in the first
cell of the first sheet. The second and the third sheet are empty.
But the excel file result has only the second and the third sheet. The
first was removed.
 
Can You help me ?
 
Thank you.


This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: How to use xls-serializer processor

Erik Bruchez
Administrator
Julien,

See this thread:

http://www.nabble.com/always-getting-a-corrupt-file-when-using-to-xls-converter...Orbeon-Forms-3.5.1.200703310056-td15288922.html

I think you will have to look a the Java code if you really want to  
use this processor.

-Erik

On Feb 13, 2008, at 2:13 AM, Bittard, Julien wrote:

>
> Hello,
>
> I want to create un Excel file.
> I try to use xls-serializer like the converter user guide.
> But it doesn't work.
>
> My model.xpl :
> <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
>          xmlns:oxf="http://www.orbeon.com/oxf/processors">
>
>
> <p:processor name="oxf:xls-serializer">
> <p:input name="config">
>  <config template="oxf:/apps/JBIT-calculator/test.xls">
>  </config>
> </p:input>
> <p:input name="data">
> <a>
> <b>10</b>
> </a>
> </p:input>
> <p:output name="data" id="xls-binary"/> </p:processor>
>
> <!-- Serialize -->
> <p:processor name="oxf:http-serializer">  <p:input name="data"
> href="#xls-binary"/>  <p:input name="config">
>  <config>
>   <header>
>    <name>Content-Disposition</name>
>    <value>attachment; filename=test.xls</value>
>   </header>
>  </config>
> </p:input>
> </p:processor>
>
> </p:config>
>
> In my template test.xls I put this format : # ##0;"/a/b" in the first
> cell of the first sheet. The second and the third sheet are empty.
> But the excel file result has only the second and the third sheet. The
> first was removed.
>
> Can You help me ?
>
> Thank you.
>
>
> This e-mail and any attachment is for authorised use by the intended  
> recipient(s) only. It may contain proprietary material, confidential  
> information and/or be subject to legal privilege. It should not be  
> copied, disclosed to, retained or used by, any other party. If you  
> are not an intended recipient then please promptly delete this e-
> mail and any attachment and all copies and inform the sender. Thank  
> you.
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws