cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stoeckel, Matthias" <>
Subject [Bug] multiple Xalan transformations and i18n doesn't function wi th latest Cocoon snapshot
Date Mon, 28 Apr 2003 13:03:19 GMT

there seems to be an error with the combination of the new Xalan (2.5) and
the i18n transformer.
I'm using the following setup:
- Latest Source from this morning.
- modified Hello World sample
- jdk 1.3.1_06 on solaris

This is the modified pipeline for the Hello World sample:

   <map:match pattern="hello.html">
    <map:generate src="content/hello.xml"/>
    <map:transform src="style/xsl/page2html.xsl" type="xalan"/>
<!-- some dummy transformations -->
    <map:transform src="ident.xsl" type="xalan"/>
    <map:transform src="ident.xsl" type="xalan"/>
    <map:transform src="ident.xsl" type="xalan"/>
    <map:transform  type="i18n">
           <map:parameter name="locale" value="de"/>
    <map:serialize type="html"/>

Modified hello.xml:

<?xml version="1.0"?>
<page xmlns:i18n="">
  <para>This is my first Cocoon page!

The ident.xsl source code, which simply copies all tags from input to

<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0"
  <xsl:template match="@*|node()">
      <xsl:apply-templates select="@*"/>

I'm also using the message catalogue from the i18n sample. As long as I have
only one Xalan transformation everything works fine. But as soon as I add
another transformation the output gets corrupted. Some (all?) closing tags
get lost after the i18n transformation. This problem stops when I use the
old Xalan 2.4.1!
Does anybody have an idea how to fix this? I can provide a zip file with the
modified hello world example, if wanted.

View raw message