cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tuomo L <>
Subject Session-transformer copying mixed content incorrectly?
Date Mon, 25 Jul 2005 08:01:52 GMT

I have this kind of pipeline setup. The latter match uses the first one to 
generate with JXTemplateGenerator, runs some SQLTransformer and XSLT and 
then serializes. Pretty basic stuff.

<map:match pattern="template">
   <map:aggregate element="data">
     <map:part src="cocoon:/system-template"/>
     <map:part src="cocoon:/site-template"/>
     <map:part src="cocoon:/request"/>
   <map:transform type="cinclude"/>
   <map:transform src="stylesheets/cinclude2session.xsl"/>
   <map:transform type="session"/>
   <map:transform src="stylesheets/session2data.xsl"/>
   <map:transform type="session"/>
   <map:transform src="stylesheets/data2template.xsl"/>
   <map:transform type="session"/>
   <map:serialize type="xml"/>

<map:match pattern="**">
   <map:generate type="jx" src="cocoon:/template"/>
   <map:transform type="sql">
     <map:parameter name="use-connection" value="default"/>
   <map:transform src="stylesheets/template2content.xsl"/>
   <map:serialize type="html"/>

Now, if my original data has mixed content, like:

<foo>Here's text <bar/> and some more</foo>

It becomes after the last SessionTransfomer:

<foo><bar/>Here's text and some more</foo>

So the mixed content gets copied incorrectly. If I remove the last 
SessionTransformer from the first pipeline-match, the 
mixed content gets copied just right.

What's wrong? Is this a bug in SessionTransformer? Possible namespace 


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message