cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lionel Crine <>
Subject Re: Transformer lost the structure of input stream???
Date Mon, 29 Mar 2004 07:40:19 GMT
This is an xslt question.

You should send a message to :

But here is an hint.
The xslt transformer is not implicated in that case.

Your match overall is incomplete if you want to copy all the nodes.

try that :

<xsl:template match="overall">
         <xsl:apply-templates select="stream1"/>
         <xsl:apply-templates select="stream2|stream3"/>


At 02:11 27/03/2004 -0800, you wrote:
>I tried to aggregate several xml streams and transform the aggregated 
>stream by a xsl transformer. all goes well except that the markup, for example
>I want the output to be
><FirstStream><name>     TheFirstName    </name>    <data>  TheFirstData

></data> /FirstStream>....
>But the output I got 
>is:    <FirstStream>    TheFirstName    TheFirstData  </FirstStream>....
>the" <name>" and "<data>"is lost,  does anybody have some idea why?
>here is my input streams, pipeline and transformer, thanks for your time 
>and help ve~~~~~~~~ry much indeed
><xsl:template match="overall">
><FirstStream><xsl:apply-templates select="stream1"/>
>     <xsl:apply-templates select="stream2|stream3"/>
>  <SecondStream></xsl:template>
>     <name>
>         TheFirstName
>     </name>
>     <data>
>           TheFirstData
>     </data>
>     <despt>
>         here is the descript
>     </despt>
>     <remark>
>         Here is the remark
>     </remark>
>and here is my pipeline:
>      <map:match pattern="aggregated">
>  <map:aggregate element="overall">
>   <map:part src="stream1.xml"/>
>   <map:part src="stream2.xml"/>
><map:part src="stream3.xml"/>
><map:transform src="stylesheet.xsl">
><map:serialize type="html" />

Lionel CRINE
Ingénieur Systèmes documentaires
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : Fax :

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

View raw message