cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Magnus Haraldsen Amundsen" <Magnus.Haraldsen.Amund...@computas.com>
Subject Problem with transformation of CForms using XSLT
Date Mon, 14 Apr 2008 11:01:52 GMT
Hi,

 

I have a CForm with a definitions file and a template file. The template
file looks like this:

 

<?xml version="1.0" encoding="UTF-8"?>

<c:page xmlns:ft="http://apache.org/cocoon/forms/1.0#template"

        xmlns:fi="http://apache.org/cocoon/forms/1.0#instance"

        xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"

        xmlns="http://www.w3.org/1999/xhtml"

        xmlns:c="http://xmlns.computas.com/cocoon">

 

  <jx:import
uri="servlet:forms:/resource/internal/generation/jx-macros.xml"/>

 

  <c:content>

    <c:resourceform>

       <ft:form-template action="firstform" method="POST">

         <fi:group>

           <fi:styling layout="columns"/>

           <fi:items>

 

            <ft:widget-label id="url"/>

            <ft:widget id="url"/>

 

            <ft:widget-label id="title"/>

            <ft:widget id="title"/>

 

          </fi:items>

        </fi:group>

        <input type="submit"/>

      </ft:form-template>

    </c:resourceform>

  </c:content>

</c:page>

 

This is transformed to XHTML using a XSLT that imports 

 

<xsl:import
href="servlet:forms:/resource/internal/xsl/forms-page-styling.xsl"/>

 <xsl:import
href="servlet:forms:/resource/internal/xsl/forms-field-styling.xsl"/>

 

And applies this to

 

<xsl:apply-templates select="c:page/c:content/c:resourceform"
mode="forms-page"/>

<xsl:apply-templates select="c:page/c:content/c:resourceform"
mode="forms-field"/>

 

The problem is that the form doesn't output anything, it just writes out
the labels defined in the form definition file.

 

What can be the cause of this?

 

- Magnus

 


IMPORTANT NOTICE:
This message may contain confidential information. 
If you have received this e-mail in error, do not use, copy or 
distribute it. Do not open any attachments. Delete it immediately from
your system and notify the sender promptly by e-mail that you 
have done so. Thank you.


Mime
View raw message