cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yury Mikhienko <>
Subject support non-english characters in HSSFSerializer
Date Thu, 13 Mar 2003 12:59:28 GMT
Hi all!

I am using cocoon v.2.0.4 and trying to create an ms-exel document using non-english characters
but HSSFSerializer 
does not work properly (as in cocoon v2.0.2). In created document I get the corrupted symbols
instead of russian text :((

in sitemap I set the following:

    <map:serializers default="html">
     <map:serializer name="xls" src="org.apache.cocoon.serialization.HSSFSerializer" mime-type="application/">

if I set the encoding to KOI8-R, I get some problems.

my page2xls.xsl:

<?xml version="1.0" encoding="KOI8-R"?>

<xsl:stylesheet version="1.0" xmlns:xsl=""
                             xmlns:gmr="" >

  <xsl:param name="view-source"/>

  <xsl:template match="page">
   <gmr:Workbook xmlns:gmr="">
         <gmr:Sheet DisplayFormulas="false" HideZero="false" HideGrid="false" HideColHeader="false"
HideRowHeader="false" DisplayOutlines="true" OutlineSymbolsBelow="true" OutlineSymbolsRight="true">
                 <gmr:Name><xsl:value-of select="title"/></gmr:Name>
                 <gmr:Cols DefaultSizePts="100">
                     <gmr:ColInfo No="0" Unit="100" MarginA="2" MarginB="2" Count="7"/>
                 <gmr:Rows DefaultSizePts="12.8">
                        <gmr:RowInfo No="0" Unit="12.8" MarginA="0" MarginB="0" Count="9"/>
                        <gmr:RowInfo No="10" Unit="12.8" MarginA="1" MarginB="0" Count="24"/>
                        <xsl:apply-templates select="content"/>

  <xsl:template match="content">
     <gmr:Cell Col="0" ValueType="60" Row="0">

Where I'm wrong? Can anyone help me?
Thanks for advice.

Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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

View raw message