You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "David Lee (JIRA)" <xa...@xml.apache.org> on 2005/03/08 19:52:52 UTC

[jira] Created: (XALANJ-2076) date:day-in-month() returns month -1

date:day-in-month() returns month -1
------------------------------------

         Key: XALANJ-2076
         URL: http://issues.apache.org/jira/browse/XALANJ-2076
     Project: XalanJ2
        Type: Bug
  Components: Xalan-extensions  
    Versions: 2.5Dx    
    Reporter: David Lee
    Priority: Minor


<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:date="http://exslt.org/dates-and-times" extension-element-prefixes="date">
<xsl:element name="date">
<xsl:attribute name="month"><xsl:value-of select="date:month-in-year()"/></xsl:attribute>
</xsl:element>

If the current date is March 10, 2005, I would expect this function to return 3.  But it returns 2.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Resolved: (XALANJ-2076) date:month-in-year() returns month -1

Posted by "Morris Kwan (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-2076?page=all ]
     
Morris Kwan resolved XALANJ-2076:
---------------------------------

    Fix Version: CurrentCVS
     Resolution: Fixed

> date:month-in-year() returns month -1
> -------------------------------------
>
>          Key: XALANJ-2076
>          URL: http://issues.apache.org/jira/browse/XALANJ-2076
>      Project: XalanJ2
>         Type: Bug
>   Components: Xalan-extensions
>     Versions: 2.5Dx
>     Reporter: David Lee
>     Assignee: Morris Kwan
>     Priority: Minor
>      Fix For: CurrentCVS
>  Attachments: XALANJ-2076.patch, datetimepatch.txt
>
> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:date="http://exslt.org/dates-and-times" extension-element-prefixes="date">
> <xsl:element name="date">
> <xsl:attribute name="month"><xsl:value-of select="date:month-in-year()"/></xsl:attribute>
> </xsl:element>
> If the current date is March 10, 2005, I would expect this function to return 3.  But it returns 2.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Updated: (XALANJ-2076) date:month-in-year() returns month -1

Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-2076?page=history ]

Henry Zongaro updated XALANJ-2076:
----------------------------------

    Summary: date:month-in-year() returns month -1  (was: date:day-in-month() returns month -1)

Corrected summary.

> date:month-in-year() returns month -1
> -------------------------------------
>
>          Key: XALANJ-2076
>          URL: http://issues.apache.org/jira/browse/XALANJ-2076
>      Project: XalanJ2
>         Type: Bug
>   Components: Xalan-extensions
>     Versions: 2.5Dx
>     Reporter: David Lee
>     Priority: Minor

>
> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:date="http://exslt.org/dates-and-times" extension-element-prefixes="date">
> <xsl:element name="date">
> <xsl:attribute name="month"><xsl:value-of select="date:month-in-year()"/></xsl:attribute>
> </xsl:element>
> If the current date is March 10, 2005, I would expect this function to return 3.  But it returns 2.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-2076) date:day-in-month() returns month -1

Posted by "David Lee (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-2076?page=comments#action_60472 ]
     
David Lee commented on XALANJ-2076:
-----------------------------------

I just checked my email..the subject should be date:month-in-year() returns month -1

> date:day-in-month() returns month -1
> ------------------------------------
>
>          Key: XALANJ-2076
>          URL: http://issues.apache.org/jira/browse/XALANJ-2076
>      Project: XalanJ2
>         Type: Bug
>   Components: Xalan-extensions
>     Versions: 2.5Dx
>     Reporter: David Lee
>     Priority: Minor

>
> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:date="http://exslt.org/dates-and-times" extension-element-prefixes="date">
> <xsl:element name="date">
> <xsl:attribute name="month"><xsl:value-of select="date:month-in-year()"/></xsl:attribute>
> </xsl:element>
> If the current date is March 10, 2005, I would expect this function to return 3.  But it returns 2.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Updated: (XALANJ-2076) date:month-in-year() returns month -1

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-2076?page=all ]

Brian Minchau updated XALANJ-2076:
----------------------------------

    Fix Version: 2.7
                     (was: CurrentCVS)

> date:month-in-year() returns month -1
> -------------------------------------
>
>          Key: XALANJ-2076
>          URL: http://issues.apache.org/jira/browse/XALANJ-2076
>      Project: XalanJ2
>         Type: Bug
>   Components: Xalan-extensions
>     Versions: 2.5Dx
>     Reporter: David Lee
>     Assignee: Morris Kwan
>     Priority: Minor
>      Fix For: 2.7
>  Attachments: XALANJ-2076.patch, datetimepatch.txt
>
> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:date="http://exslt.org/dates-and-times" extension-element-prefixes="date">
> <xsl:element name="date">
> <xsl:attribute name="month"><xsl:value-of select="date:month-in-year()"/></xsl:attribute>
> </xsl:element>
> If the current date is March 10, 2005, I would expect this function to return 3.  But it returns 2.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Updated: (XALANJ-2076) date:month-in-year() returns month -1

Posted by "Glen Mazza (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-2076?page=history ]

Glen Mazza updated XALANJ-2076:
-------------------------------

    Attachment: datetimepatch.txt

For date/time extension functions, Xalan relies on the java.util.Calendar class, which uses a zero-based numbering system for months [1].  Enclosed patch appears to fix this issue.

[1] http://java.sun.com/j2se/1.4.2/docs/api/java/util/Calendar.html#MONTH

> date:month-in-year() returns month -1
> -------------------------------------
>
>          Key: XALANJ-2076
>          URL: http://issues.apache.org/jira/browse/XALANJ-2076
>      Project: XalanJ2
>         Type: Bug
>   Components: Xalan-extensions
>     Versions: 2.5Dx
>     Reporter: David Lee
>     Priority: Minor
>  Attachments: datetimepatch.txt
>
> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:date="http://exslt.org/dates-and-times" extension-element-prefixes="date">
> <xsl:element name="date">
> <xsl:attribute name="month"><xsl:value-of select="date:month-in-year()"/></xsl:attribute>
> </xsl:element>
> If the current date is March 10, 2005, I would expect this function to return 3.  But it returns 2.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Updated: (XALANJ-2076) date:month-in-year() returns month -1

Posted by "Morris Kwan (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-2076?page=all ]

Morris Kwan updated XALANJ-2076:
--------------------------------

    Attachment: XALANJ-2076.patch

I have reviewed the original patch and made some minor changes. The new patch is attached.

> date:month-in-year() returns month -1
> -------------------------------------
>
>          Key: XALANJ-2076
>          URL: http://issues.apache.org/jira/browse/XALANJ-2076
>      Project: XalanJ2
>         Type: Bug
>   Components: Xalan-extensions
>     Versions: 2.5Dx
>     Reporter: David Lee
>     Assignee: Morris Kwan
>     Priority: Minor
>  Attachments: XALANJ-2076.patch, datetimepatch.txt
>
> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:date="http://exslt.org/dates-and-times" extension-element-prefixes="date">
> <xsl:element name="date">
> <xsl:attribute name="month"><xsl:value-of select="date:month-in-year()"/></xsl:attribute>
> </xsl:element>
> If the current date is March 10, 2005, I would expect this function to return 3.  But it returns 2.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Updated: (XALANJ-2076) date:month-in-year() returns month -1

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-2076?page=history ]

Brian Minchau updated XALANJ-2076:
----------------------------------

    Assign To: Morris Kwan

Seems like a valid problem, assigning to Morris K. per the Xalan JIRA meeting on April 5, 2005.

> date:month-in-year() returns month -1
> -------------------------------------
>
>          Key: XALANJ-2076
>          URL: http://issues.apache.org/jira/browse/XALANJ-2076
>      Project: XalanJ2
>         Type: Bug
>   Components: Xalan-extensions
>     Versions: 2.5Dx
>     Reporter: David Lee
>     Assignee: Morris Kwan
>     Priority: Minor
>  Attachments: datetimepatch.txt
>
> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:date="http://exslt.org/dates-and-times" extension-element-prefixes="date">
> <xsl:element name="date">
> <xsl:attribute name="month"><xsl:value-of select="date:month-in-year()"/></xsl:attribute>
> </xsl:element>
> If the current date is March 10, 2005, I would expect this function to return 3.  But it returns 2.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org