Depending on your design, you can also use an input Module : http://cocoon.us.apache.org/2.1/userdocs/concepts/modules-ref.html
that can "inject" values into pipelines.

++

On 26/07/2010 16:36, Boisvert, Eric wrote:
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.wits...@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.wits...@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.wits...@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

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

Reply via email to