ovidiu      2002/10/01 01:59:57

  Added:       src/webapp/samples/flow/examples/test README.txt sendpage.js
                        sitemap.xmap
               src/webapp/samples/flow/examples/test/pages showString.xsp
  Log:
  Added. Used for Anteater tests.
  
  Revision  Changes    Path
  1.1                  xml-cocoon2/src/webapp/samples/flow/examples/test/README.txt
  
  Index: README.txt
  ===================================================================
  This directory is intended to be used by the Anteater test
  suite. Please don't modify things in this directory without modifying
  the appropriate Anteater scripts in src/test/anteater/.
  
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/flow/examples/test/sendpage.js
  
  Index: sendpage.js
  ===================================================================
  function showString(parameter)
  {
    print ("parameter = " + parameter);
    
    sendPageAndContinue("showString.html",
                        { "parameter" : parameter, "replaceme" : "@replaceme@" });
  }
  
  
  
  1.1                  xml-cocoon2/src/webapp/samples/flow/examples/test/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  <?xml version="1.0"?>
  
  <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0";>
  
    <map:components>
      <map:generators default="file"/>
      <map:transformers default="xslt"/>
      <map:readers default="resource"/>
      <map:serializers default="html"/>
      <map:matchers default="wildcard"/>
    </map:components>
  
    <map:flow language="JavaScript">
      <map:script src="sendpage.js"/>
    </map:flow>
  
    <map:pipelines>
  
      <map:pipeline>
        <map:match pattern="kont/*">
          <map:call continuation="{1}"/>
        </map:match>
  
        <map:match pattern="showString">
          <map:call function="showString">
          <map:parameter name="parameter" value="@parameter2@"/>
        </map:call>
        </map:match>
  
      </map:pipeline>
  
    </map:pipelines>
  
  </map:sitemap>
  
  
  
  1.1                  
xml-cocoon2/src/webapp/samples/flow/examples/test/pages/showString.xsp
  
  Index: showString.xsp
  ===================================================================
  <?xml version="1.0"?>
  
  <!--
    Author: Ovidiu Predescu "[EMAIL PROTECTED]"
  
    Date: October 1, 2002
   -->
  
  <xsp:page
    language="java"
    xmlns:xsp="http://apache.org/xsp";
    xmlns:jpath="http://apache.org/xsp/jpath/1.0";
    >
    
    <document>
  
      <header>
        <title>Show number</title>
        <authors>
          <person name="Ovidiu Predescu" email="[EMAIL PROTECTED]"/>
        </authors>
      </header>
  
      <body>
        <s1 title="String">
        <p><jpath:value-of select="replaceme"/></p>
        <p><jpath:value-of select="parameter"/></p>
         </s1>
      </body>
  
    </document>
  
  </xsp:page>
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to