Return-Path: Delivered-To: apmail-cocoon-docs-archive@www.apache.org Received: (qmail 63090 invoked from network); 8 Feb 2009 23:11:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Feb 2009 23:11:43 -0000 Received: (qmail 63864 invoked by uid 500); 8 Feb 2009 23:11:41 -0000 Delivered-To: apmail-cocoon-docs-archive@cocoon.apache.org Received: (qmail 63832 invoked by uid 500); 8 Feb 2009 23:11:41 -0000 Mailing-List: contact docs-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: docs@cocoon.apache.org List-Id: Delivered-To: mailing list docs@cocoon.apache.org Received: (qmail 63806 invoked by uid 99); 8 Feb 2009 23:11:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Feb 2009 15:11:41 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.67] (HELO cocoon.zones.apache.org) (140.211.11.67) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Feb 2009 23:11:39 +0000 Received: from cocoon.zones.apache.org (localhost [127.0.0.1]) by cocoon.zones.apache.org (8.13.8+Sun/8.13.8) with ESMTP id n18NBHYx006066 for ; Sun, 8 Feb 2009 23:11:17 GMT Message-ID: <17050661.1234134677820.JavaMail.daisy@cocoon.zones.apache.org> Date: Sun, 8 Feb 2009 23:11:17 +0000 (GMT+00:00) From: daisy@cocoon.zones.apache.org To: docs@cocoon.apache.org Subject: [DAISY] Updated: Improving the simple sample Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org A document has been updated: http://cocoon.zones.apache.org/daisy/documentation/752.html Document ID: 752 Branch: main Language: default Name: Improving the simple sample (unchanged) Document Type: Cocoon Document (unchanged) Updated on: 1/12/09 10:37:35 AM Updated by: David Legg A new version has been created, state: draft Parts ===== Content ------- This part has been updated. Mime type: text/xml (unchanged) File name: (unchanged) Size: 6323 bytes (previous version: 6281 bytes) Content diff: (2 equal lines skipped)

This section describes some possible improvements to the simple sample.

---

Automatic layouting

+++

Automatic layout

---

A very common way of layouting a form is in a table with two columns: the +++

A very common way of laying out a form is in a table with two columns: the left column contains the labels, the right column the input fields. The CForms XSL stylesheets support some tags to do this automatically for you. Here is the template for the simple sample, using automatic two-column styling:

(35 equal lines skipped) Furthermore, the stylesheets will properly use the HTML label tag to associate the label with the input field.

---

Other supported stylings include "tabs" (for tabbed panes), "choice" (similar --- to tabs but with a dropdown to switch), "fieldset" (groups the fields in a frame --- with a label). See the CForms samples for examples of how to use them.

+++

Other supported layouts include:

+++
    +++
  • "tabs" (for tabbed panes)
  • +++
  • "choice" (similar to tabs but with a dropdown to switch)
  • +++
  • "fieldset" (groups the fields in a frame with a label)
  • +++
+++ +++

See the CForms samples for examples of how to use them.

+++

Using i18n

As mentioned before, you can internationalize the form labels by embedding (105 equal lines skipped)