You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Stoeckel, Matthias" <Ma...@Dresdner-Bank.com> on 2003/04/28 15:45:24 UTC

Re: [Bug] multiple Xalan transformations and i18n doesn't functio n with latest Cocoon snapshot

Hi Konstantin,

this is the output after all normal Xalan transformations:

<?xml version="1.0" encoding="UTF-8"?>
<page xmlns:i18n="http://apache.org/cocoon/i18n/2.1">
 <title>Hello</title>
 <content>
  <para>This is my first Cocoon page!
  <i18n:text>a_key</i18n:text>
</para>
 </content>
</page>

And here after the i18n transformation:

<?xml version="1.0" encoding="UTF-8"?>
<page xmlns:i18n="http://apache.org/cocoon/i18n/2.1">
 <title>Hello</title>
 <content>
  <para>This is my first Cocoon page!
  Dies ist der Wert eines Schlüssels.

There are no errors in the log. Here is the log part of the i18n
transformation. 

DEBUG   (2003-04-28) 15:40.35:116   [sitemap.transformer.i18n]
(/samples/hello-world/hello.html) PoolThread-4/I18nTransformer:
I18nTransformer: Starting i18n element: text
DEBUG   (2003-04-28) 15:40.35:117   [sitemap.transformer.i18n]
(/samples/hello-world/hello.html) PoolThread-4/I18nTransformer:
I18nTransformer: Start i18n element: text
DEBUG   (2003-04-28) 15:40.35:118   [sitemap.transformer.i18n]
(/samples/hello-world/hello.html) PoolThread-4/I18nTransformer:
I18nTransformer: i18n message text = 'a_key'
DEBUG   (2003-04-28) 15:40.35:120   [sitemap.transformer.i18n]
(/samples/hello-world/hello.html) PoolThread-4/I18nTransformer:
I18nTransformer: End i18n element: text
DEBUG   (2003-04-28) 15:40.35:146   [sitemap.transformer.i18n]
(/samples/hello-world/hello.html) PoolThread-4/I18nTransformer:
I18nTransformer: End i18n element: para
DEBUG   (2003-04-28) 15:40.35:146   [sitemap.transformer.i18n]
(/samples/hello-world/hello.html) PoolThread-4/I18nTransformer:
I18nTransformer: End i18n element: content
DEBUG   (2003-04-28) 15:40.35:147   [sitemap.transformer.i18n]
(/samples/hello-world/hello.html) PoolThread-4/I18nTransformer:
I18nTransformer: End i18n element: page


Cheers
  Matthias

Re: [Bug] multiple Xalan transformations and i18n doesn't function with latest Cocoon snapshot

Posted by Konstantin Piroumian <kp...@apache.org>.
Seems that i18n transformer performed it worked correctly.
Do you have anything else after it in the pipeline?

I have seen something like this before, but don't remember details and it
was not an error of i18n transformer.
Try to remove components from the pipeline step-by-step and see what
happens.

Konstantin

----- Original Message ----- 
From: "Stoeckel, Matthias" <Ma...@Dresdner-Bank.com>
To: <co...@xml.apache.org>
Sent: Monday, April 28, 2003 17:45
Subject: Re: [Bug] multiple Xalan transformations and i18n doesn't function
with latest Cocoon snapshot


Hi Konstantin,

this is the output after all normal Xalan transformations:

<?xml version="1.0" encoding="UTF-8"?>
<page xmlns:i18n="http://apache.org/cocoon/i18n/2.1">
 <title>Hello</title>
 <content>
  <para>This is my first Cocoon page!
  <i18n:text>a_key</i18n:text>
</para>
 </content>
</page>

And here after the i18n transformation:

<?xml version="1.0" encoding="UTF-8"?>
<page xmlns:i18n="http://apache.org/cocoon/i18n/2.1">
 <title>Hello</title>
 <content>
  <para>This is my first Cocoon page!
  Dies ist der Wert eines Schlüssels.

There are no errors in the log. Here is the log part of the i18n
transformation.

DEBUG   (2003-04-28) 15:40.35:116   [sitemap.transformer.i18n]
(/samples/hello-world/hello.html) PoolThread-4/I18nTransformer:
I18nTransformer: Starting i18n element: text
DEBUG   (2003-04-28) 15:40.35:117   [sitemap.transformer.i18n]
(/samples/hello-world/hello.html) PoolThread-4/I18nTransformer:
I18nTransformer: Start i18n element: text
DEBUG   (2003-04-28) 15:40.35:118   [sitemap.transformer.i18n]
(/samples/hello-world/hello.html) PoolThread-4/I18nTransformer:
I18nTransformer: i18n message text = 'a_key'
DEBUG   (2003-04-28) 15:40.35:120   [sitemap.transformer.i18n]
(/samples/hello-world/hello.html) PoolThread-4/I18nTransformer:
I18nTransformer: End i18n element: text
DEBUG   (2003-04-28) 15:40.35:146   [sitemap.transformer.i18n]
(/samples/hello-world/hello.html) PoolThread-4/I18nTransformer:
I18nTransformer: End i18n element: para
DEBUG   (2003-04-28) 15:40.35:146   [sitemap.transformer.i18n]
(/samples/hello-world/hello.html) PoolThread-4/I18nTransformer:
I18nTransformer: End i18n element: content
DEBUG   (2003-04-28) 15:40.35:147   [sitemap.transformer.i18n]
(/samples/hello-world/hello.html) PoolThread-4/I18nTransformer:
I18nTransformer: End i18n element: page


Cheers
  Matthias



Re: [Bug] multiple Xalan transformations and i18n doesn't function with latest Cocoon snapshot

Posted by Konstantin Piroumian <kp...@apache.org>.
And also try to add exclude-namespace-prefixes="i18n" attribute to
<xsl:stylesheet/>.

----- Original Message ----- 
From: "Stoeckel, Matthias" <Ma...@Dresdner-Bank.com>
To: <co...@xml.apache.org>
Sent: Monday, April 28, 2003 17:45
Subject: Re: [Bug] multiple Xalan transformations and i18n doesn't function
with latest Cocoon snapshot


Hi Konstantin,

this is the output after all normal Xalan transformations:

<?xml version="1.0" encoding="UTF-8"?>
<page xmlns:i18n="http://apache.org/cocoon/i18n/2.1">
 <title>Hello</title>
 <content>
  <para>This is my first Cocoon page!
  <i18n:text>a_key</i18n:text>
</para>
 </content>
</page>

And here after the i18n transformation:

<?xml version="1.0" encoding="UTF-8"?>
<page xmlns:i18n="http://apache.org/cocoon/i18n/2.1">
 <title>Hello</title>
 <content>
  <para>This is my first Cocoon page!
  Dies ist der Wert eines Schlüssels.

There are no errors in the log. Here is the log part of the i18n
transformation.

DEBUG   (2003-04-28) 15:40.35:116   [sitemap.transformer.i18n]
(/samples/hello-world/hello.html) PoolThread-4/I18nTransformer:
I18nTransformer: Starting i18n element: text
DEBUG   (2003-04-28) 15:40.35:117   [sitemap.transformer.i18n]
(/samples/hello-world/hello.html) PoolThread-4/I18nTransformer:
I18nTransformer: Start i18n element: text
DEBUG   (2003-04-28) 15:40.35:118   [sitemap.transformer.i18n]
(/samples/hello-world/hello.html) PoolThread-4/I18nTransformer:
I18nTransformer: i18n message text = 'a_key'
DEBUG   (2003-04-28) 15:40.35:120   [sitemap.transformer.i18n]
(/samples/hello-world/hello.html) PoolThread-4/I18nTransformer:
I18nTransformer: End i18n element: text
DEBUG   (2003-04-28) 15:40.35:146   [sitemap.transformer.i18n]
(/samples/hello-world/hello.html) PoolThread-4/I18nTransformer:
I18nTransformer: End i18n element: para
DEBUG   (2003-04-28) 15:40.35:146   [sitemap.transformer.i18n]
(/samples/hello-world/hello.html) PoolThread-4/I18nTransformer:
I18nTransformer: End i18n element: content
DEBUG   (2003-04-28) 15:40.35:147   [sitemap.transformer.i18n]
(/samples/hello-world/hello.html) PoolThread-4/I18nTransformer:
I18nTransformer: End i18n element: page


Cheers
  Matthias