Hi. I have something like this at sitemap.
<map:transformer name="i18n" logger="sitemap.transformer.i18n"
src="org.apache.cocoon.transformation.I18nTransformer">
<catalogues default="messages">
<catalogue id="messages" name="messages"
location="translations"/>
</catalogues>
<cache-at-startup>false</cache-at-startup>
</map:transformer>
....
and next
<map:match pattern="index.html">
<map:generate src="static/index.html"/>
<map:transform type="i18n">
<map:parameter name="locale" value="{../locale}"/>
</map:transform>
<map:serialize type="html"/>
</map:match>
and in index.html:
<?xml version='1.0'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:i18n="http://apache.org/cocoon/i18n/2.1" i18n:attr="language"
language="language">
<head>
<title>Rechnungs Archiv</title>
<meta content="no-cache" http-equiv="pragma" />
<meta content="0" http-equiv="expires" />
<script type="text/javascript" src="prototype.js" />
<script type="text/javascript" src="window.js" />
<script type="text/javascript" src="popup_window.js"></script>
<script type="text/javascript" src="js.js"></script>
<script type="text/javascript" src="invoicesSearch.js"></script>
<script type="text/javascript" src="invoicesPrinting.js"></script>
<style type="text/css" media="all">@import "invoices.css"; @import
"alert.css";</style>
</head>
<body onload="getContents('portal');">
<div id="header">
header_logo_como.jpg
<span
onclick="getContents('portal');"><i18n:text>Portal.portal</i18n:text></span>
<span
onclick="getContents('/invoices/logout');"><i18n:text>Portal.logout</i18n:text></span>
</div>
<div id="title">Archiv</div>
<div id="contents">
</div>
</body>
</html>
It works, but not at all. There is strange output:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:i18n="http://apache.org/cocoon/i18n/2.1" language="language">
<head>
<title>Rechnungs Archiv</title>
<meta content="no-cache" http-equiv="pragma"/>
<meta content="0" http-equiv="expires"/>
<script type="text/javascript" src="prototype.js" xml:space="preserve"/>
<script type="text/javascript" src="window.js" xml:space="preserve"/>
<script type="text/javascript" src="popup_window.js"
xml:space="preserve"/>
<script type="text/javascript" src="js.js" xml:space="preserve"/>
<script type="text/javascript" src="invoicesSearch.js"
xml:space="preserve"/>
<script type="text/javascript" src="invoicesPrinting.js"
xml:space="preserve"/>
<style type="text/css" media="all" xml:space="preserve">@import
"invoices.css"; @import "alert.css";</style>
</head>
<body onload="getContents('portal');">
<div id="header">
header_logo_como.jpg
<span onclick="getContents('portal');">Portal</span>
<span onclick="getContents('/invoices/logout');">Logout</span>
</div>
<div id="title">Archiv</div>
<div id="contents">
</div>
</body>
</html>
There are strange xml:space tag.
And in MsWord this page is not visible.
What i've done wrong?
Could You help me?
Greetings Piotr
--
View this message in context:
http://www.nabble.com/i18nTransformer-problems-with-static-pages-tf2750404.html#a7673784
Sent from the Cocoon - Dev mailing list archive at Nabble.com.