Hello Coccon users!

I'm going through the XSP documentation and try to do the following
example (which, surprisingly, is not part of the supplied examples.  I
would recommend that releases should include a working setup of the
documentations example so that one can see how they integrate with
other, more complicated concepts such as sitemaps).

<!-- greeting2.xml -->
<?xml version="1.0"?>

<?cocoon-process type="xsp"?>
<?cocoon-process type="xslt"?>
<?xml-stylesheet type="text/xsl" href="greeting.xsl"?>

  <xsp:page xmlns:xsp="http://www.apache.org/1999/XSP/Core";>
    <xsp:logic>
      String msg = "Hello World!";
    </xsp:logic>

    <greeting>
      <xsp:expr>msg</xsp:expr>
    </greeting>

  </xsp:page>

But the output are just the html tags as specified in greeting.xsl.
No hello World whatsoever :(

I am using a sub sitemap for these examples.  I suspect it is the
culprit.

<?xml version="1.0"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0";>
<!-- =========================== Components ================================ -->

 <map:components>

  <map:generators default="file"/>
  <map:transformers default="xslt"/>
  <map:readers default="resource"/>
  <map:serializers default="html"/>
  <map:selectors default="browser"/>
  <map:matchers default="wildcard">
   <map:matcher name="wildcard" 
src="org.apache.cocoon.matching.WildcardURIMatcherFactory"/>
  </map:matchers>

 </map:components>

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

 <map:pipelines>
  <map:pipeline>

   <map:match pattern="">
    <map:redirect-to uri="welcome"/>
   </map:match>

   <map:match pattern="welcome">
    <map:generate src="greeting.xml"/>
    <map:transform src="greeting.xsl"/>
    <map:serialize/>
   </map:match>

   <map:match pattern="*.xml">
    <map:generate src="{1}.xml"/>
    <map:transform src="greeting.xsl"/>
    <map:serialize/>
   </map:match>

   <map:handle-errors>
    <map:transform src="../stylesheets/error2html.xsl"/>
    <map:serialize status-code="500"/>
   </map:handle-errors>

  </map:pipeline>
 </map:pipelines>

</map:sitemap>

<!--
 Local Variables:
 mode: xml
 End:
-->

Please, could somebody help me in getting this trivial (but important)
bit going.  I'd like to see how well coccon integrates with J2EE
technologies.


-- 
  Nicolai P Guba    http://www.gnu.org         http://www.frontwire.com
                    mailto:[EMAIL PROTECTED]     mailto:[EMAIL PROTECTED]
                    GSM: +44 (0)7909 960 751   DDI: +44 (0)20 7368 9708

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to