daisy
Mon, 12 Jan 2009 02:38:25 -0800
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)
<p>This section describes some possible improvements to the simple
sample.</p>
--- <h1>Automatic layouting</h1>
+++ <h1>Automatic layout</h1>
--- <p>A very common way of layouting a form is in a table with two columns: the
+++ <p>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:</p>
(35 equal lines skipped)
Furthermore, the stylesheets will properly use the HTML <tt>label</tt> tag
to
associate the label with the input field.</p>
--- <p>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.</p>
+++ <p>Other supported layouts include:</p>
+++ <ul>
+++ <li>"tabs" (for tabbed panes)</li>
+++ <li>"choice" (similar to tabs but with a dropdown to switch)</li>
+++ <li>"fieldset" (groups the fields in a frame with a label)</li>
+++ </ul>
+++
+++ <p>See the CForms samples for examples of how to use them.</p>
+++
<h1>Using i18n</h1>
<p>As mentioned before, you can internationalize the form labels by
embedding
(105 equal lines skipped)