cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kai Mutz <kmu...@web.de>
Subject RE: Resources misplaced in CForms (2.1.8)?
Date Thu, 16 Mar 2006 10:45:35 GMT
You need a "resource" piplene reading from jar file in sitemap:

<map:match pattern="resources/*/**">
	<map:read src="resource://org/apache/cocoon/{1}/resources/{2}"/>
</map:match>

and e.g. the following lines in "your" forms2html stylesheet:

<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-styl
ing.xsl"/>
<xsl:param name="resources-uri">resources</xsl:param>

The value of the resources-uri param points to the pipeline match pattern.

> -----Original Message-----
> From: users-return-85835-kmuetz=web.de@cocoon.apache.org
> [mailto:users-return-85835-kmuetz=web.de@cocoon.apache.org]On Behalf Of
> Fernando.Matomira@thomson.com
> Sent: Thursday, March 16, 2006 11:20 AM
> To: users@cocoon.apache.org
> Subject: RE: Resources misplaced in CForms (2.1.8)?
>
>
> They are in the JAR, but in the wrong place, according to the stylesheet
> references.
>
> -----Original Message-----
> From: kmuetz@web.de [mailto:kmuetz@web.de]
> Sent: Thursday, March 16, 2006 11:11 AM
> To: users@cocoon.apache.org
> Subject: RE: Resources misplaced in CForms (2.1.8)?
>
> citation of change log:
> "CForms block: The default HTML stylesheets have been moved into the jar
> packages."
>
>
>
> -----Original Message-----
> From: users-return-85829-kmuetz=web.de@cocoon.apache.org
> [mailto:users-return-85829-kmuetz=web.de@cocoon.apache.org]On Behalf Of
> Fernando.Matomira@thomson.com
> Sent: Thursday, March 16, 2006 9:59 AM
> To: users@cocoon.apache.org
> Subject: Resources misplaced in CForms (2.1.8)?
>
>
> I see the CForms resources are located in a "resources" subdirectory,
> but in
> the foms stylesheets they are referenced
> as located in "{$resources-uri}/forms" . There's no intermediate "forms"
> directory in "resources".
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message