> I have a bug report, a feature request, a question, and a
> documentation change:
> 1. In format-time(), the [h] specifier produces 0 for midnight or noon
> instead of 12; for example, in:
> 2. Also in format-time(), using [Pn,2] produces 'a.m.' or 'p.m.'; it
> would be nice if it produced 'am' or 'pm'. Similarly 'a' or 'p' for
> [Pn,1] would be helpful. Also, [P] prints 'midnight' for 00:00:00 and
> 'noon' for 12:00:00 when 'a.m.' and 'p.m.' would often be preferable.
Thanks. The 12-hour clock confuses me like mad. I thought "a" (ante) meant
before, and "p" (post) meant after. But the BBC, who are about the only
people in England who still use the 12-hour clock, appear to describe
midnight as 12am and noon as 12pm. Is that the same as US usage?
> 3. Are there any functions for parsing dates & times to complement the
> functions for formatting them?
No, the WG has not defined any such functions. You could invoke the Java
routines using the extension function mechanism. EXSLT has a parse-date()
function but it is not currently implemented in Saxon - I have been putting
a higher priority on implementing things in the core language.
> 4. The documentation for xsl:function contains the element:
> <xsl:param name="number" type="xs:integer"/>
> I think the 'type' attribute should be 'as'.
Thanks, now fixed.