Hi Folks

I am very ner to cocoon, about 3 days and have a few questions.
One of the example files in the cocoon distribution, 

simple.xsp

Uses the tags,

content
title
para
page

I cannot seem to find a style sheet which defines what these tags are. 
Where
are they defined? 

At the moment I am just serving this page with

<map:match pattern="testpage">
    <map:generate type="serverpages" src="docs/samples/testpage.xsp"/>
    <map:serialize/>
</map:match>

Can someone please tell me whats going on.

Cheers

Tony


XXXXXXXXXXXXXXXXXXXXXXXXXXXSOURCE FILE FOLLOWSXXXXXXXXXXXXXXXXXXXXXXX

<?xml version="1.0" encoding="ISO-8859-1"?>

<xsp:page
          language="java"
          xmlns:xsp="http://apache.org/xsp";
          xmlns:xsp-request="http://apache.org/xsp/request/2.0";
          xmlns:log="http://apache.org/xsp/log/2.0";
>

  <page>
  <log:logger name="xsp-sample" filename="xsp-sample.log"/>
  <log:debug>Processing the beginning of the page</log:debug>

   <title>A Simple XSP Page</title>

   <content>

   <para>Hi there! I'm a simple dynamic page generated by XSP
(eXtensible Server Pages).</para>

   <para>I was requested as the URI: <b><xsp-request:get-uri
as="xml"/></b></para>

   <para>The following list was dynamically generated:</para>

   <ul>
     <xsp:logic>
       <![CDATA[
       for (int i=0; i<3; i++) {
       ]]>
         <li>
           Item <xsp:expr>i</xsp:expr>
         </li>
       <![CDATA[
       } 
       ]]>
     </xsp:logic>
   </ul>

   <xsp:element>
     <xsp:param
name="name"><xsp:expr>"P".toLowerCase()</xsp:expr></xsp:param>
     <xsp:attribute name="align">left</xsp:attribute>
     <i>
       This paragraph was dynamically generated by logic embedded in the
page
     </i>
   </xsp:element>

   <para>
     Request parameter "name" as XML:
     <xsp-request:get-parameter name="name" default="Not provided"
as="xml"/>
   </para>

   <para>
     Request parameter "name" as String:
     <xsp-request:get-parameter name="name" default="Not provided"/>
   </para>

   <xsp-request:get-parameter-values name="name"/>

   <xsp-request:get-parameter-names/>

   <para>
     Header "user-agent" as XML:
     <xsp-request:get-header name="user-agent" as="xml"/>
   </para>

   <para>
     Header "user-agent" as String:
     <xsp-request:get-header name="user-agent"/>
   </para>

   <xsp-request:get-header-names/>

   <para>Brought to you by Cocoon2 at <xsp:expr>new
Date()</xsp:expr>.</para>
   </content>
   <log:debug>Processing the end of the page</log:debug>
  </page>
</xsp:page>

---------------------------------------------------------------------
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