cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boisvert, Eric" <Eric.Boisv...@RNCan-NRCan.gc.ca>
Subject RE: Hand over XSL variable value - wrong list?
Date Mon, 26 Jul 2010 14:36:59 GMT
it's the right list.
 
Anyone, correct me if I'm wrong, but it cannot be done (not this way anyway).  I suspect you
want to push a parameter to the sitemap so it can be used to parametrize some other component
down the pipeline.  If I understand correctly, the all pipeline variables are evaluated before
the XML stream has even started to be processed.  So you are "too late" for this parameter
to have any influence, all the pipeline is already setup.  To do such late decision, you need
to use cinclude and invoke another pipeline.
 
Hope this help (and is actually the right answer)
 
Cordialement
Eric
 

________________________________

De : Immanuel Witschi [mailto:Immanuel.Witschi@net-m.ch] 
Envoyé : 26 juillet 2010 10:25
À : users@cocoon.apache.org
Objet : AW: Hand over XSL variable value - wrong list?


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


Mime
View raw message