cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Z.Z." <za...@vili.pmmf.hu>
Subject Re: Serialization encoding problem
Date Fri, 23 Jul 2004 19:56:20 GMT
Hi All,
2004. július 23. 17.09 dátummal Volkm@r ezt írta:
> What's the reason for wanting to use HTML serializer (instead of
> XHTML), Do you definitely need empty elements like <img src="...">
> instead of <img src="..." />?
> I have also tried several times to get real Unicode characters from
> HTML serializer but without success. Maybe it's not designed to.

I am using cocoon to view Openoffice documents by online. Because it 
is a Hungarian OpenOffice there are special style-names.

For example tables styles named Táblázat1 and so on.
In heading I collect styles from content.xml and styles.xml like this:

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
.default{font-family:"Times New Roman" Arial Verdana sans-serif; 
font-size:12pt; }
.Standard{font-family:"Times New Roman" Arial Verdana sans-serif; 
font-size:12pt; }
.Text_body{text-align:justify; }
.Heading{margin-top:4mm; margin-bottom:2mm; font-family:"Arial" Arial 
Verdana sans-serif; font-size:14pt; }
.Heading_1{margin-top:4mm; margin-bottom:1mm; font-family:"Arial" 
Arial Verdana sans-serif; font-size:16pt; font-weight:bold; }
.Heading_2{margin-top:4mm; margin-bottom:1mm; font-family:"Arial" 
Arial Verdana sans-serif; font-size:14pt; font-weight:bold; }
.Heading_3{margin-top:4mm; margin-bottom:1mm; font-family:"Arial" 
Arial Verdana sans-serif; font-size:13pt; font-weight:bold; }
.Heading_4{font-size:85%; font-weight:bold; }
.List{}
.Header{}
.Footer{}
.Táblázat1.A1{background-color:#d9d9d9; border:0.002cm solid 
#000000; }
.Táblázat1.A2{}
.Táblázat1.C2{}
.Táblázat6{}
.Táblázat6.A{}
.Táblázat6.A1{}
.Táblázat6.B1{}
.Táblázat6.C1{border:0.002cm solid #000000; }
</head>

And then in body style references are:
<body>

<table class="T&aacute;bl&aacute;zat1">
<table-column style-name="T&aacute;bl&aacute;zat1.A"></table-column>
<table-column style-name="T&aacute;bl&aacute;zat1.B"></table-column>
<table-column style-name="T&aacute;bl&aacute;zat1.C"></table-column>
<tr>

<td colspan="3" class="T&aacute;bl&aacute;zat1.A1">
...

So style references cannot match predefined style names.

And I can solve it:
in style names I translate á to a and it works well :-)

-- 
thx,
----------------------------------------------------
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message