peter wrote:
On Wed, 24 May 2006 10:20:36 +0200, Christofer Dutz wrote
If you add a tag called "head" anywhere in your template, then
CForms will add all CForm stuff (CSS, JavaScript, ... everything
that belongs into a html head-tag) it needs inside this tag. All you
have to do in any transformation is to "move" the entire content to
the place it belongs to using a simple <xsl:copy-of select="//head"/>
Umm. There's already a head element in the template,
which is the sample one from the Cocoon documentation at
http://cocoon.apache.org/2.1/userdocs/basics/sample.html:
<head>
<title>Registration form</title>
</head>
Are your HTML elements by chance in the http://www.w3.org/1999/xhtml
namespace, or another namespace? The CForms XSLT only matches elements
in the null namespace. I've been tripped up by that before.
Using the sample transformation from the same place
(forms-samples-styling.xsl), the output is appearing as:
<head xmlns:bu="http://apache.org/cocoon/browser-update/1.0">
<title>Registration form</title>
</head>
Obviously something is missing but I can't see what.
///Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]