You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/09/10 16:41:28 UTC

[DO NOT REPLY: Bug 3516] xalan-j 2.2.x handles variable initialization different to xalan-j 2.1.0

PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3516

*** shadow/3516	Mon Sep 10 02:27:53 2001
--- shadow/3516.tmp.7501	Mon Sep 10 07:41:28 2001
***************
*** 2,9 ****
  | xalan-j 2.2.x handles variable initialization different to xalan-j 2.1.0   |
  +----------------------------------------------------------------------------+
  |        Bug #: 3516                        Product: XalanJ2                 |
! |       Status: NEW                         Version: 2.2.x                   |
! |   Resolution:                            Platform: PC                      |
  |     Severity: Normal                   OS/Version: Windows NT/2K           |
  |     Priority: Other                     Component: Xalan                   |
  +----------------------------------------------------------------------------+
--- 2,9 ----
  | xalan-j 2.2.x handles variable initialization different to xalan-j 2.1.0   |
  +----------------------------------------------------------------------------+
  |        Bug #: 3516                        Product: XalanJ2                 |
! |       Status: RESOLVED                    Version: 2.2.x                   |
! |   Resolution: INVALID                    Platform: PC                      |
  |     Severity: Normal                   OS/Version: Windows NT/2K           |
  |     Priority: Other                     Component: Xalan                   |
  +----------------------------------------------------------------------------+
***************
*** 59,62 ****
  </xsl:template>
  
  </xsl:stylesheet>
! ----------------------------------------
--- 59,76 ----
  </xsl:template>
  
  </xsl:stylesheet>
! ----------------------------------------
! 
! ------- Additional Comments From johnglinux@eyecatching.com  2001-09-10 07:41 -------
! Your XSL incorrectly reassigns the variable foo which breaks the
! functional programming model outlined in M Kay's XSLT book. I too
! ran into the same problem when converting from 2.1 -> 2.2. The thread
! should be in an archive. Xalan 2.2 still allows variable reassigment
! which is invalid, the problem you are having is that it treats the
! second variable foo as a new variable, so you can't assign a variable to
! itself because it has not been created yet.
! 
! Read chapter 8 of Michael Kay's book on functional programming, there are
! a few good examples on how this operation can be coded correctly in XSLT.
! Be carefull because it requires a new way of thinking on how to use variables.
! Thought of the day, side effect free programming...