You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by rachid harradi <ra...@gmx.net> on 2007/09/05 10:28:03 UTC

Pass variable from transformer to another trnsformer

Hello together ,

i think it is possible to Passing a Parameter or variable from flowscript  to to generator and to transformer finaly to another transformer or serializer

i dont know how ?

the Sitemap is:
<map:pipeline>
	    
	    <map:match pattern="">
	      <map:call function="Doc_Mail_InfoDeleOrdered"/>
	   	</map:match>
	   
	    
	    <map:match pattern="Doc_Mail_InfoDeleOrdered.js">
	   	 
		   	 <map:generate  src="module:flow-attr:myXml"/>  
		   	
		   	 
		     <map:transform  type="mailme" src="context:/resources/stylesheets/Mail_InfoDeleOrdered.xslt"/>
		    
		     <map:transform src="context:/resources/sources/saveFile.xsl">
		         	<map:parameter name="serializer" value="html" />
		         	<map:parameter name="filepath" value="{flow-attribute:path}" />
		     </map:transform>
		     
		    <map:transform type ="savefiles">
               her "filepath"???
</map:transform>
		    <map:serialize type="html"/>
		    
		</map:match>
		
	   <map:match pattern="success.txt">
	         <map:generate type="jx" src="context:/resources/templates/success.jxt"/>
	         <map:serialize type="html"/>
	   </map:match>
	      
	   <map:match pattern="error.txt">
	         <map:generate type="jx" src="context:/resources/templates/error.jxt"/>
	         <map:serialize type="html"/>
	   </map:match>
	    
	</map:pipeline> 




thanks


Rachid Harradi
-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Pass variable from transformer to another trnsformer

Posted by Joerg Heinicke <jo...@gmx.de>.
On 05.09.2007 4:28 Uhr, rachid harradi wrote:

> i think it is possible to Passing a Parameter or variable from flowscript  to to generator and to transformer finaly to another transformer or serializer

> 		     <map:transform src="context:/resources/sources/saveFile.xsl">
> 		         	<map:parameter name="serializer" value="html" />
> 		         	<map:parameter name="filepath" value="{flow-attribute:path}" />
> 		     </map:transform>
> 		     
> 		    <map:transform type ="savefiles">
>                her "filepath"???

Why not as above using <map:parameter name="filepath" 
value="{flow-attribute:path}" />?

Joerg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org