cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolai P Guba <>
Subject Getting Started with XSP on Coccon2
Date Tue, 18 Sep 2001 11:48:38 GMT
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="">
      String msg = "Hello World!";



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

<?xml version="1.0"?>
<map:sitemap xmlns: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"/>


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


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

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

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

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



 Local Variables:
 mode: xml

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

  Nicolai P Guba
                    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. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message