ovidiu 02/03/24 23:44:56 Modified: src/scratchpad/schecoon/webapp sitemap.xmap Log: Make use of <map:continue> to resume a continuation saved previously. Revision Changes Path 1.11 +9 -15 xml-cocoon2/src/scratchpad/schecoon/webapp/sitemap.xmap Index: sitemap.xmap =================================================================== RCS file: /home/cvs/xml-cocoon2/src/scratchpad/schecoon/webapp/sitemap.xmap,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- sitemap.xmap 24 Mar 2002 07:43:25 -0000 1.10 +++ sitemap.xmap 25 Mar 2002 07:44:56 -0000 1.11 @@ -36,9 +36,7 @@ <map:pipeline> <map:match pattern="calc/kont/*"> - <map:call function="handleContinuation"> - <map:parameter name="kontId" value="{1}"/> - </map:call> + <map:continue with="{1}"/> </map:match> <map:match pattern="calc/"> @@ -87,17 +85,15 @@ </map:call> </map:match> - <!-- This example invokes a Scheme function, defined using - "function": - - (function (my-function sitemap env a b) - ...) + <!-- This example invokes a function in an interpreted language. The function's argument names can appear as parameters inside - the <map:param> elements, like below. A parameter defined in - <map:call> using <map:param>, which is not a formal argument of - the Scheme function, is simply ignored (like the "c" parameter - below). + the <map:parameter> elements, like below. In most languages, the + name of te argument is ignored, and the arguments are passed to + the actual function in the position in which they appear in the + XML fragment. In languages where arguments can be named, the + order of the <map:parameter> is not important, as parameters are + associated by name with the actual values. --> <map:match pattern="function/*"> @@ -110,9 +106,7 @@ <!-- This pipeline executes continuations stored on the server --> <map:match pattern="kont/*"> - <map:call function="handleContinuation"> - <map:parameter name="kontId" value="{1}"/> - </map:call> + <map:continue with="{1}"/> </map:match> </map:pipeline>
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]