cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luca Marchetti <coc...@marchetti.eu.org>
Subject Flowscript
Date Mon, 10 Mar 2003 15:35:54 GMT

Hi all.
  I'm tryng to get flowscript work
 When I try to use flowscript, as in the flow/calc demo of cocoon2.1 i 
get this error:

ReferenceError: "Continuation" is not defined. 
(resource://org/apache/cocoon/components/flow/javascript/system.js; line 15)
        at 
org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:597)
        at 
org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:557)
        at 
org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1076)
        at 
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2265)
        at 
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:58)
        at 
org.apache.cocoon.components.flow.javascript.JavaScriptInterpreter.callFunction(JavaScriptInterpreter.java:531)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:197)
....
....
....

What is it?
Seems an internal error!
Anyone can help me?

My sitemap is:

 <map:components>
  <map:generators default="file"/>
  <map:transformers default="xslt"/>
  <map:readers default="resource"/>
  <map:serializers default="html"/>
  <map:matchers default="wildcard">
     <map:matcher logger="sitemap.matcher.header" name="filename" 
src="org.apache.cocoon.matching.modular.CachingRegexpMatcher">
        <input-module name="request-param">
           <parameter>filename</parameter>
        </input-module>
     </map:matcher>
  </map:matchers>
  <map:selectors default="browser"/>
 <map:flow-interpreters default="JavaScript"/>
 </map:components>


<!-- =========================== Pipelines 
================================= -->

<map:flow language="JavaScript">
    <map:script src="test.js"/>
</map:flow>
   
 <map:pipelines>
  <map:pipeline>
      <map:match pattern="test">
        <map:generate src="test.xml" />
        <map:serialize type="xml" />
    </map:match>

    <map:match pattern="kont/*">
            <map:call continuation="{1}"/>
    </map:match>

    <map:match pattern="script">
            <map:call function="test"/>
    </map:match>
  </map:pipeline>
 </map:pipelines>

and test.js is

function test()
{
    sendPage("test");
}

Thanks in advice,

Luca Marchetti


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


Mime
View raw message