Hi Michael,
in Cocoon 2 the XSP namespace has to be declared as
xmlns:xsp="http://apache.org/xsp"
Logicsheets have to be declared in cocoon.xconf as
<builtin-logicsheet>...</nuiltin-logicsheet>.
Your sitemap entry is a far as I can see correct.
Hope this helps
Judith
----- Original Message -----
From: "Michael Bierenfeld" <[EMAIL PROTECTED]>
To: "Cocoon User Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 26, 2001 11:48 AM
Subject: C2 Stylesheet, logicsheet and content
> Hi once again :-(
>
> C2 is driving me nuts. I can run the xsp examples with no props. I can
> evenso run own xsp files without a logicsheet. No Propblem at all. But
> what I wanna do right now is the following :
>
> content/greeting.xml -> content
> logicsheets/logicsheet.greeting.xsl -> logic
> stylesheets/greeeing.xsl -> style
>
> ------------------------------------------------------
> I have the following entry in my mounted sitemap :
>
> <map:match pattern="content/greeting">
> <map:generate type="serverpages" src="content/greeting.xml"/>
> <map:transform src="stylesheets/greeting.xsl"/>
> <map:serialize/>
> </map:match>
>
> -------------------------------------------------------
> greeting.xml looks like this :
>
> <?xml version="1.0"?>
>
> <?cocoon-process type="xsp"?>
> <?xml-logicsheet href="../logicsheets/logicsheet.greeting.xsl"?>
>
> <xsp:page
> xmlns:xsp="http://www.apache.org/1999/XSP/Core"
> xmlns:greeting="http://duke.edu/tutorial/greeting">
>
> <greeting>
> [<greeting:hello-world/>]
> </greeting>
>
> </xsp:page>
>
> --------------------------------------------------------
> logicsheet.greeting.xsl looks like this :
>
> <?xml version="1.0"?>
> <xsl:stylesheet
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:xsp="http://www.apache.org/1999/XSP/Core"
> xmlns:greeting="http://duke.edu/tutorial/greeting"
> version="1.0">
>
> <xsl:template match="xsp:page">
> <xsl:copy>
> <xsl:apply-templates select="@*"/>
> <xsl:apply-templates/>
> </xsl:copy>
>
> <xsp:structure>
> <xsp:include>java.text.*</xsp:include>
> </xsp:structure>
>
> <xsl:copy>
> <xsl:apply-templates select="@*"/>
> <xsl:apply-templates/>
> </xsl:copy>
>
> </xsl:template>
>
> <xsl:template match="@*|node()" priority="-1">
>
> <xsl:copy>
> <xsl:apply-templates select="@*|node()"/>
> </xsl:copy>
>
> </xsl:template>
>
> </xsl:stylesheet>
>
> ----------------------------------------------------
> + greeting.xsl as a simple style sheet
>
> <?xml version="1.0"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0">
>
> <xsl:template match="/">
>
> <html>
> <body>
> <h1>
> <xsl:apply-templates/>hallo Michael Bierenfeld
> </h1>
> </body>
> </html>
>
> </xsl:template>
>
> </xsl:stylesheet>
>
> I cant get this to run. And I really dont know why. The documentaton
> about sitemap is speaking about :
>
> <map:generator name="xsp"
> src="org.apache.cocoon.generators.XSPGenerator">
>
> OK so far so good. But this generator is not there beside that its
> called cocoon.generation.FileGenerator. I am totally confused. Did
> somebody ever managed to get the separation of content, logic and style
> up and running. ??
>
> I am struggling whith that for a couple of days now and I am realy
> starting to get frustrated. Pls if somebody has an working example
> inlcuding the neccessary modifikation in sitemap.xmap ...
>
> Regards
>
> Michael
>
> ---------------------------------------------------------------------
> 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]>