Presentation Modifiers

A presentation modifier is a code that defines how a part of a date or time value should be displayed. For example, FNn displays the day of the week as the capitalized name of the day, using the current language. If your system is set up to use English and the calendar used in the United States, the name of the day of the week (FNn) for 15 August 2007 is Wednesday. The formatting code FWw displays the numeric value Four. Using German with the same codes on the same date displays the values Mittwoch and Drei (Wednesday is the third day of the week in the European calendar). Table F-4 describes the presentation modifiers.

Table F-4. Presentation modifiers
ModifierMeaning
1The value as a number with one or more digits: 0, 1, 2, 3, 4, ....
01The value as a number with two or more digits: 00, 01, 02, ... 09, 10, 11, ... 99, 100, 101, ....
(Other numeric values)An XSLT processor is free to support other numbering schemes. To quote an example from the spec, a formatting code of ๑ tells the processor to use Thai numbering. See the documentation for your processor to see which numbering schemes it supports.
AThe value as an uppercase letter: A, B, C, ... Z, AA, AB, AC, ....
aThe value as a lowercase letter: a, b, c, ... z, aa, ab, ac, ....
IThe value as an uppercase roman numeral: I, II, III, IV, V, VI, VII, VIII, IX, X, ....
iThe value as an lowercase roman numeral: i, ii, iii, iv, v, vi, vii, viii, ix, x, ....
nThe name of the component in lowercase. Applies only to ...

Get XSLT, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.