I'm using cocoon 2.1.5 on Tomcat 4.1.24, running on OSX and on Gentoo Linux. I
want to run a pipeline like this:
<map:pipeline>
<map:match pattern="*/diary">
<map:generate type="directory" src="/www/data/digitalobjects/diary"/>
<map:transform type="xslt" src="xsl/dirlisting.xsl" label="basiccontent">
<map:parameter name="language" value="{1}"/>
<map:parameter name="doctype" value="diary"/>
<map:parameter name="source-base-url" value="{global:full-base-url}"/>
</map:transform>
<map:transform type="i18n">
<map:parameter name="locale" value="en"/>
</map:transform>
<map:serialize type="html"/>
</map:match>
</map:pipeline>
So, I get an xml directory listing, transform it into an HTML page, which has
<i18n:text> tags around the text, and then I run it through the i18n
transformer. And I get this weird error; It does *something*, but it doesn't
transform the text. Instead, this:
<i18n:text>MPT</i18n:text>
becomes this:
<i18n:text>MPT
The second half of the i18n tag is gone, but the text hasn't changed. The output
is no longer well formed xml.
Now the really strange thing is that if I instead save the HTML from the second
step in my pipeline into its own file, and then transform that (so the i18n
transformation is the only step in the pipeline), it works fine.
The two HTML files (the separate file, and the one generated by the XSL
transformation) are identical in every way. I can reproduce this in other
contexts, too. Has anyone seen this before? That i18n transformations work in
some contexts but not in others, and specifically don't seem to work after the
first transformation in a pipeline?
Any advice is much appreciated.
Thanks in advance!
Bess Sadler
University of Alberta
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]