XFA Specification
Chapter 24, Picture Clause Specification
Complex Picture-Clause Expressions
907
Category
name
time
Subcategory
name
Example data in
en_us
locale
short
medium
long
full
default
5:23 PM
5:23:52 PM
5:23:52 PM EDT
5:23:52 PM EDT
5:23:52 PM
7/1/06 5:23 PM
Jul 1, 2006 5:23:52 PM
Same data in
fr_fr
locale
17:23
17:23:52
17:23:52 CEST
17 h 23 CEST
17:23:52
01/07/06 17:23
1 juil. 2006 17:23:52
datetime short
medium
long
full
default
num
integer
decimal
currency
percent
July 1, 2006 5:23:52 PM EDT 1 juillet 2006 17:23:52 CEST
Saturday, July 1, 2006
5:23:52 PM EDT
Jul 1, 2006 5:23:52 PM
1,234
1,234.56
$1,234.56
1,234%
samedi 1 juillet 2006 17 h
23 CEST
1 juil. 2006 17:23:52
1.235
1.234,56
€1.234,56
1.234%
The picture name
default
delegates to the XFA processor the selection of a predefined picture clause.
Which one it picks is implementation defined. For example, Acrobat selects
medium
when
default
is
specified. There is no
default
option for the
num
category.
The predefined picture clauses for
date
,
time
and
num
are carried in the
localeSet
packet of the XDP
and can be redefined by the form creator. In contrast the
datetime
predefined picture is not exposed in
the
localeSet
packet and cannot be redefined. For most locales it is the corresponding
date
picture,
followed by a space (U+0020) character, followed by the corresponding
time
picture, however for some
locales the order of date and time is reversed and for some locales the separator is not a space or there is
no separator.
Within the
localeSet
packet there are only three numeric picture clauses. The picture clause named
numeric
does double-duty. The integer part of it is used for
num.integer
formatting and the whole
picture clause is used for
num.decimal
formatting.
Compound Picture Clauses
In some circumstances it is necessary to construct a picture clause which comprises other picture clauses
from more than one category. Consider the following example of two data items formatted with a
compound picture clause. Results have been quoted, so that one can see where spaces would appear in
the formatted value. The quotes are not actually part of the result.
Home Index Bookmark Pages
Pages: Home Index All Pages