cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Guillard <>
Subject [portal] html head for CForms
Date Wed, 16 Feb 2005 09:26:59 GMT
Hi all,

Since i put some CForms in Portal coplets i added references to js/css resources directly
in portal-page.xsl. Today i'd like to clean my pages = having js references only when needed
and mostly reuse CForms stylesheets.
After a check in samples/blocks i've found these XSL transformations:

1. portal-page.xsl
Then cinclude is applying the coplet contents, so we have only inside the coplet page : 
1. simple-page2html.xsl
2. forms-samples-styling.xsl 

I see only one solution to apply the heads dynamically :
- Put the head stuff in the body in forms-samples-styling.xsl in <cforms_head> tag
- Then add a stylsheet after cinclude like this :
<xsl:template match="/">

<xsl:template match="head">
	<xsl:apply-templates select="//cforms_head/head/script"/>	
	<xsl:apply-templates select="head"/>

Complicated. Somebody did it before?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message