Return-Path:
Delivered-To: apmail-cocoon-docs-archive@www.apache.org
Received: (qmail 7631 invoked from network); 17 Jan 2007 18:03:38 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2)
by minotaur.apache.org with SMTP; 17 Jan 2007 18:03:38 -0000
Received: (qmail 40957 invoked by uid 500); 17 Jan 2007 18:03:44 -0000
Delivered-To: apmail-cocoon-docs-archive@cocoon.apache.org
Received: (qmail 40932 invoked by uid 500); 17 Jan 2007 18:03:44 -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 40921 invoked by uid 99); 17 Jan 2007 18:03:44 -0000
X-ASF-Spam-Status: No, hits=-9.4 required=10.0
tests=ALL_TRUSTED,NO_REAL_NAME
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; Wed, 17 Jan 2007 10:03:43 -0800
Message-ID: <17959379.1169056997127.JavaMail.daisy@cocoon.zones.apache.org>
Date: Wed, 17 Jan 2007 18:03:16 +0000 (GMT+00:00)
From: daisy@cocoon.zones.apache.org
To: docs@cocoon.apache.org
Subject: [DAISY] Updated: Cocoon Forms: Datatypes
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/487.html
Document ID: 487
Branch: main
Language: default
Name: Cocoon Forms: Datatypes (unchanged)
Document Type: Cocoon Document (unchanged)
Updated on: 1/17/07 6:03:04 PM
Updated by: Bruno Dumon
A new version has been created, state: publish
Parts
=====
Content
-------
This part has been updated.
Mime type: text/xml (unchanged)
File name: (unchanged)
Size: 8542 bytes (previous version: 8317 bytes)
Content diff:
(235 equal lines skipped)
Configuration pseudo-schema:
<fd:convertor type="formatting" variant="date|time|datetime" ?
--- style="short|medium|long|full" ? lenient="true|false" ?>
+++ style="short|medium|long|full" ?
+++ timeStyle="short|medium|long|full" ?
+++ lenient="true|false" ?>
<fd:patterns>
<fd:pattern>....</fd:pattern> ?
<fd:pattern locale="lang-COUNTRY">....</fd:pattern> *
(9 equal lines skipped)
Will give the following for July 15, 2003: 7/15/03. Using style medium it
gives "Jul 15, 2003", style long gives "July 15, 2003", and style full gives
--- "Tuesday, July 15, 2003". These result are locale-dependent of course.
+++ "Tuesday, July 15, 2003". These result are locale-dependent of course. By
+++ default the value of the style attribute applies to both the date and time
+++ components, but you can specify a different style preference for times using the
+++ timeStyle attribute.
Here's an example of using a formatting pattern:
(38 equal lines skipped)