<. Hi cocoon-users! .>

   I have some problem with indents in HTML Serializer.
   It is returning to me this output:

<html xmlns:fo="http://www.w3.org/1999/XSL/Format";>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="core.css" type="text/css" rel="stylesheet">
<title>Witaj!</title>
</head>
<body vlink="#FFFFFF" alink="#FFFFFF" link="#FFFFFF">
<table width="100%">
<tbody>
<col width="130">
<col width="*">
<col width="150">
<tr>
<td colspan="3">
        
<table class="header">
                
<tbody>
                        
<tr>
                                
<td>
                                        <img src="header/images/logo.gif"><br>
                                        
<span style="font-style: italic;">Programowanie gier - to nie hobby, to nasza 
pasja!</span>
                                </td>
                                <td>
                                        
                Baner here!
        
                                </td>
                        
</tr>
                        
<tr>
                                
<td colspan="2">
                                        
<table class="smartbar">
<tbody>
<tr>
<td>Smartbar needs implementation!</td>
</tr>
</tbody>
</table>
[...]

     And I want something like this:
     
<html xmlns:fo="http://www.w3.org/1999/XSL/Format";>
        <head>
                <META http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
                <link href="core.css" type="text/css" rel="stylesheet"/>
                <title>Witaj!</title>
        </head>
        <body vlink="#FFFFFF" alink="#FFFFFF" link="#FFFFFF">
                <table width="100%">
                        <tbody>
                                <col width="130"/>
                                <col width="*"/>
                                <col width="150"/>
                                <tr>
                                        <td colspan="3">
                                                <table class="header">
                                                        <tbody>
                                                                <tr>
                                                                        <td>
                                                                                <img 
src="header/images/logo.gif"/>
                                                                                <br/>
                                                                                <span 
style="font-style: italic;">Programowanie gier - to nie hobby, to nasza pasja!</span>
                                                                        </td>
                                                                        <td>
                                        
                Baner here!
        
                                </td>
                                                                </tr>
                                                                <tr>
                                                                        <td 
colspan="2">
                                                                                <table 
class="smartbar">
                                                                                       
 <tbody>
                                                                                       
         <tr>
                                                                                       
                 <td>Smartbar needs implementation!</td>
                                                                                       
         </tr>
                                                                                       
 </tbody>
                                                                                
</table>
[...]

How can I do this?

Another problem is encoding :-(
I want to use UTF-8, I have this declaration in my sitemap:
<map:serializer name="html" mime-type="text/html" 
src="org.apache.cocoon.serialization.HTMLSerializer">
                                <indent>1</indent>
                                <encoding>UTF-8</encoding>
                        </map:serializer>

And in output I have some chars encoded as entities. How Can I force Cocoon to encode 
my language (polish) chars
correctly?
I'm using Cocoon 2.0.4 installed from bin (war file) on Tomcat 4.1.18. My OS is WinXP 
(SP1).

Sorry about any mistakes, I speak little english...

-- 
Best regards
<. g[R]eK mailto:[EMAIL PROTECTED] .>


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

Reply via email to