Hi Anna,
 
you could implement an action which takes your HTTP request parameter as input parameter, then execute some JAVA code inside the action getting the last character, incrementing it or whatever else and let the action return the result. Inside the <act> tags in your sitemap, you can then access the return value of the action and pass it to the stylesheet.
 
Regards,
Elmar
-----Ursprüngliche Nachricht-----
Von: Anna Afonchenko [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 17. Dezember 2002 12:55
An: cocoon-users
Betreff: value-substitution in Cocoon

I have the following question:
I know that in Cocoon I can use value substitution inside a pipeline, e.g. if I have a pipeline
<map:pipeline>
  <map:match pattern="*/*.html">
    <map:generate src=""/>
    <map:transform src="">
      <map:parameter name="param" value="{1}"/>
    </map:transform>
  </map:match>
</map:pipeline>
 
 
then in the pipeline the stylesheet some.xsl will receive a parameter with name param and value param1. So this is my question:
Can I somehow parse/evaluate this parameter {1} inside the sitemap (not inside the xsl).
E.g., can I somehow, having {1}="param1" extract the last character ("1" in this case) and send to the xsl only it, or, having parameter {1}=1, send {1}+1, i.e. 2 to the stylesheet?
 
I need this because I want to build pipeline that will get some parameter n, and after it is executed I want to call the same pipeline with parameter n+1.
Is this possible in sitemap?
 
Thank you very much for help.
 
Anna

Reply via email to