DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14237>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14237 EXSLT datetime hour-in-minute broken? Summary: EXSLT datetime hour-in-minute broken? Product: XalanJ2 Version: 2.4Dx Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Major Priority: Other Component: org.apache.xalan.lib AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Xalan 2.4.1. All calls to datetime:hour-in-day($var) where $var is a valid datetime string return a zero. datetime:hour-in-day() works fine. Unsure whether more testing should be done. Style sheet: <xsl:param name="date" select="datetime:date()"/> <xsl:variable name="day" select="datetime:day-in-month($date)"/> <xsl:variable name="month" select="datetime:month-name($date)"/> <xsl:variable name="year" select="datetime:year($date)"/> <xsl:variable name="h" select="datetime:hour-in-day()"/> <xsl:variable name="hour"><xsl:choose><xsl:when test="datetime:hour-in-day($date)>12"><xsl:value-of select="datetime:hour-in-day($date)-12"/></xsl:when><xsl:otherwise><xsl:value-of select="datetime:hour-in-day($date)"/></xsl:otherwise></xsl:choose></xsl:variable> <xsl:variable name="ampm"><xsl:choose><xsl:when test="datetime:hour-in-day($date)>12">pm</xsl:when><xsl:otherwise>am</xsl:otherwise></xsl:choose></xsl:variable> <xsl:variable name="m" select="datetime:minute-in-hour($date)"/> <xsl:variable name="min"><xsl:if test="$m<10">0</xsl:if><xsl:value-of select="$m"/></xsl:variable> <xsl:value-of select="concat($date,'---',$h,'---',$day,' ',$month,' ',$year,', ',$hour,':',$min,' ',$ampm)"/> Output: 2002-11-04T10:58:26-08:00---10---4 November 2002, 0:58 am
