cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zheng jianjun <>
Subject Testing generator encoding problem
Date Fri, 13 Feb 2004 16:39:50 GMT
Hi ,
When testing cocoon 2.1.3 , I had the following  problem . It's OK when read-in the static
XML file pages/16.xml in codepage "gb2312" by generator "file" , but not work by the testing
generator "test", which actually call Linux command "cat  /...../pages/16.xml" , the html
generated in IE , but no Chinese shown. Any advise , please ?
OS : Redhat 8.0 , locale="en_US.iso88591"
JDK 1.4.2_02-b03
Cocoon 2.1.3
web.xml :
sitemap.xmap :
<!-- the testing generator , it is call "cat /..../pages/16.xml" , then feeds it to the
pipe -->
 <map:match pattern="result/*.test">
 <map:generate type="test"/>
 <map:transform src="stylesheets/report.xsl"/>
 <map:serialize type="html"/>
 <map:match pattern="result/*.html">
 <map:generate src="pages/{1}.xml"/>
 <map:transform src="stylesheets/report.xsl"/>
 <map:serialize type="html"/>

My static 16.xml is something like:
<?xml version="1.0" encoding="GB2312"?>
          40.13 生产效率统计日报表(B)
          01/13/04 13:04:13
report.xsl is something as the following:
<?xml version="1.0"?> 
<!DOCTYPE stylesheet [
<!ENTITY nbsp "&#x00A0;">
<xsl:stylesheet version="1.0" xmlns:xsl="">
<xsl:output method="html" 
     doctype-public="-//W3C//DTD HTML 4.01//EN" 
<xsl:template match="report">
        <head><title>WIP Reports</title></head>

It's OK to input URL  http://localhost:8080/cocoon/result/16.html in IE ,
but http://localhost:8080/cocoon/result/test.test won't work .
Thanks in advance.
Jianjun Zheng.

Do You Yahoo!?
View raw message