cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ali Mahdoui <mahd...@hotmail.de>
Subject RE: AW: Hand over XSL variable value - wrong list?
Date Mon, 26 Jul 2010 14:34:25 GMT

Hi Immanuel,
i think it will work in this way: write a new transformer which writes the value of your variable
for example in the session, in the next step in the sitemap you can ask for the value with
the session attribute input module

1- call old transformer 
2- call java transformer to wirte the variable value in the session
3- get the value with session attr input mobule

but i find this solution not nice at all.
My be you can explain more waht you want to do, may be you dont need such functionality at
all.....

Ali




Subject: AW: Hand over XSL variable value - wrong list?
Date: Mon, 26 Jul 2010 16:24:45 +0200
From: Immanuel.Witschi@net-m.ch
To: users@cocoon.apache.org








is this the wrong list for such a question?  (this is 
my first post on this list) 
 
 
thanks
br
Immanuel
 


  
  
  Von: Immanuel Witschi 
  [mailto:Immanuel.Witschi@net-m.ch] 
Gesendet: Montag, 26. Juli 2010 
  14:12
An: users@cocoon.apache.org
Betreff: AW: Hand over 
  XSL variable value to sitemap param


  
  
  here an 
  example

<xsl:stylesheet
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
  xmlns:sessionutils="http://whatever/ch.minick.patches.SessionUtils"
  xmlns:userutils=http://whatever/ch.minick.patches.UserUtils>
  <xsl:output method="xml" />
  
  <xsl:param name="buttonsize" />

  <xsl:variable name="newbuttonsize" 
  select="concat($buttonsize,' is big')" 
  />


  how to make $newbuttonsize available in the sitemap as {newbuttonsize} 
  ?

   

  thanks 
  for any help

  Immanuel


  
    
    
    Von: Immanuel Witschi 
    [mailto:Immanuel.Witschi@net-m.ch] 
Gesendet: Montag, 26. Juli 
    2010 12:00
An: users@cocoon.apache.org
Betreff: Hand 
    over XSL variable value to sitemap param


    
    Hi
     
    I need to provide a variable 
    value that is defined inside a XSL transformation to a sitemap action 
    parameter. Is there a way to hand over this value?
     
    the opposite way to 
    param somevalue; in the XML 
     
     
     
    best
    Immi 		 	   		  
_________________________________________________________________
http://redirect.gimas.net/?n=M1007xHMTL4
Künftig E-Mails über Hotmail ohne Werbung versenden!
Mime
View raw message