Connecting Tech Pros Worldwide Forums | Help | Site Map

XML to Excel XSLT file: Reference style class file from outside

Member
 
Join Date: Nov 2007
Location: Kathmandu, Nepal
Posts: 68
#1: Oct 13 '09
Hi all.
I have successfully written xsl code to transform xml to excel file. I have also used css styles for excel using <ss:Styles>...</ss:Styles> inline in the xsl file.

My requirement is write the css styles in separate file and use it with the excel file. Apparently two approaches:

1. Inject style code in generated xls [in fact I generate xml file which I can open in ms excel] file.

-- OR --

2. Reference style file from outside in the generated xls [or xml] file.

I am using apache's xalan engine for the conversion.
Could anyone help please?

Thank you!

Reply

Tags
excel, xml to excel, xslt