Hi Carsten,
thanks for your help.
I included the call for the templates in the head section of my
portal-page.xsl as follows:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include
href="resource://org/apache/cocoon/forms/resources/forms-page-styling.xsl"/>
<xsl:include
href="resource://org/apache/cocoon/forms/resources/forms-advanced-field-styling.xsl"/>
<xsl:param name="user"/>
<xsl:param name="title"/>
<xsl:param name="base"/>
<xsl:param name="resources-uri">resources</xsl:param>
<xsl:template match="/">
<html>
<head>
<!--xsl:apply-templates/-->
<xsl:apply-templates select="." mode="forms-page"/>
<xsl:apply-templates select="." mode="forms-field"/>
<title><xsl:value-of select="$title"/></title>
<link type="text/css" rel="stylesheet" href="{$base}css/page.css"/>
<link type="text/css" rel="stylesheet" href="{$base}css/wsrp.css"/>
</head>
<body>
<xsl:apply-templates select="." mode="forms-page"/>
<xsl:apply-templates select="." mode="forms-field"/>
<!--xsl:apply-templates/-->
... rest of the portal-page.xsl omitted here ...
</body>
... rest of the stylesheet ...
I had to uncomment the two "<xsl:apply-templates/>", because otherwise I
would have had three times the portal opening page. without them I still
have the name of the coplets showing up above the whole portal page,
each name once for each "<xsl:apply-templates/>":
IntroductionLeftRightBottomIntroductionLeftRightBottom
IntroductionLeftRightBottomIntroductionLeftRightBottom
I included the call for the resources:
<map:match pattern="resources/*/**">
<map:read src="resource://org/apache/cocoon/{1}/resources/{2}"/>
</map:match>
in all sitemaps down to the one that does the authentication, but the
portal still does no styling on the widgets. this is really annoying, as
I thought it would actually be possible to get CForms in Coplets to
work. Now I start to doubt that it is, at least not with validation, but
I hope that I am wrong and there is a way to make it happen.
I'm quite at the end of my wits here, can someone please help me where
to go on looking?
Thank you all in advance,
christian
Carsten Ziegeler schrieb:
> Hi,
>
> the head section of the html page is "created" by the portal, so
> basically all head sections of the portlets (your cforms app) are
> ignored and not added to the output page.
> So, the easiest way is to add the head section to the portal-page.xsl of
> the portal, so the portal loads all required resources for your
> portlets. If you do this you might have to add some matchers to the
> sitemap of your portal for these resources.
>
> HTH
> Carsten
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]