cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeroen Reijn" <>
Subject RE: i18nTransformer problems with static pages
Date Mon, 04 Dec 2006 11:39:45 GMT
Hi Piotr,

are you sure it comes from the i18n transformer? What happens if you comment out the i18n
transformer and look at the result of the pipeline?

Kind regards,

Jeroen Reijn

-----Original Message-----
From: falcorn []
Posted At: Monday, December 04, 2006 11:44 AM
Posted To: Cocoon Dev List
Conversation: i18nTransformer problems with static pages
Subject: i18nTransformer problems with static pages

Hi. I have something like this at sitemap.
<map:transformer name="i18n" logger="sitemap.transformer.i18n"
	        <catalogues default="messages">
	          <catalogue id="messages" name="messages"

 and next

<map:match pattern="index.html">
	<map:generate src="static/index.html"/>
	<map:transform type="i18n">
	   	<map:parameter name="locale" value="{../locale}"/>
	 <map:serialize type="html"/>

and in index.html:
<?xml version='1.0'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="" 
xmlns:i18n="" i18n:attr="language"
    <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
  <body onload="getContents('portal');">
    <div id="header">
    <div id="title">Archiv</div>
    <div id="contents">

It works, but not at all. There is strange output:

<html xmlns=""
xmlns:i18n="" language="language">
    <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"
	<script type="text/javascript" src="invoicesPrinting.js"
	<style type="text/css" media="all" xml:space="preserve">@import
"invoices.css"; @import "alert.css";</style>
  <body onload="getContents('portal');">
    <div id="header">
      <span onclick="getContents('portal');">Portal</span>
      <span onclick="getContents('/invoices/logout');">Logout</span>
    <div id="title">Archiv</div>
    <div id="contents">

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:
Sent from the Cocoon - Dev mailing list archive at

View raw message