[Bug 5309] [XSLT 2.0] format-dateTime() component specified "z"

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5309





------- Comment #2 from alb.w3c@gmail.com  2008-03-12 14:32 -------
Proposal for clarifying the current text:

Examples of specifications:

[z] (defaults to [z1]):  GMT+1, GMT+10, GMT+5:30

[z01]: GMT+01, GMT+10, GMT+5:30

[z,6-6] (defaults to [z1,6-6] and equivalent to [z01,6-6]):
       GMT+01:00, GMT+10:00, GMT+05:30

Additions to the existing text (existing text in []):

[If the minumum and maximum width are unspecified, then the
output uses as many characters as are required to represent
the value of the component without truncation and without
padding: this is referred to below as the full representation
of the value.] For a time offset the full representation of the
value consists of the sign for the offset, the number of hours
of the offset, and if the offset is not an integral number of hours
a ":" followed by the two digits of the minutes of the offset.

...

[If the full representation of the value is shorter than the
specified minimum width, then the processor should pad the value
to the specified width. For decimal representations of numbers,
this should be done by prepending zero digits from the appropriate
set of digit characters, or appending zero digits in the case of
the fractional seconds component.]
For time offsets this should be done by appending a ":" followed by two
zero digits from the appropriate set of digit characters if the full
representation does not already include a minutes component and if
the specified minimum width permits adding three characters,
otherwise this should be done by prepending zero digits from the
appropriate set of digit characters to the hour component.
[In other cases, it should be done by appending spaces.]

The GMT examples in the table need correcting to use [z,6-6]
rather than [z]. We should also add an example resulting in GMT+2.

Received on Wednesday, 12 March 2008 14:32:31 UTC