On Wed, 19 Sep 2001, Antony Stace wrote:
> Thanks for the reply. Looking at the sitemap.xml file shows
>
> [snip]
>
> <map:match pattern="xsp/*">
> <map:generate type="serverpages" src="docs/samples/xsp/{1}.xsp"/>
> <map:transform src="stylesheets/dynamic-page2html.xsl">
> <map:parameter name="view-source"
> value="docs/samples/xsp/{1}.xsp"/>
> </map:transform>
> <map:serialize/>
> </map:match>
> [snip]
>
>
> On inspection of the file
>
> stylesheets/dynamic-page2html.xsl
This stylesheet does a xsl:include to the simple-page2html.xsl where
those elements are handled
Giacomo
>
> there are no definitions for the tags
>
> content
> title
> para
> page
>
> Where are these tags defined?
>
> Cheers
>
> Tony
>
>
>
>
>
> Giacomo Pati wrote:
> >
> > Quoting Antony Stace <[EMAIL PROTECTED]>:
> >
> > > 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?
> >
> > Look at the sitemap.xmap!
> >
> > There is a <map:match pattern="xsp/*"> which shows you where to find the
> > stylesheet.
> >
> > Giacomo
> >
> > >
> > > 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]>
> > >
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > 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]>
>
> ---------------------------------------------------------------------
> 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]>
>
>
>
>
---------------------------------------------------------------------
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]>