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/04/04 10:39:12 UTC

[Bug 1205] Changed - TransformerHandler not reusable

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

*** shadow/1205	Tue Apr  3 16:43:31 2001
--- shadow/1205.tmp.703	Wed Apr  4 01:39:12 2001
***************
*** 4,11 ****
  |        Bug #: 1205                        Product: XalanJ2                 |
  |       Status: NEW                         Version: 2.0.1                   |
  |   Resolution:                            Platform: PC                      |
! |     Severity: Normal                   OS/Version:                         |
! |     Priority:                           Component: org.apache.xalan.transf |
  +----------------------------------------------------------------------------+
  |  Assigned To: xalan-dev@xml.apache.org                                     |
  |  Reported By: slobo@matavnet.hu                                            |
--- 4,11 ----
  |        Bug #: 1205                        Product: XalanJ2                 |
  |       Status: NEW                         Version: 2.0.1                   |
  |   Resolution:                            Platform: PC                      |
! |     Severity: Normal                   OS/Version: All                     |
! |     Priority: High                      Component: org.apache.xalan.transf |
  +----------------------------------------------------------------------------+
  |  Assigned To: xalan-dev@xml.apache.org                                     |
  |  Reported By: slobo@matavnet.hu                                            |
***************
*** 53,56 ****
  It's true, that in JAXP-1.1 specification it is not explicitly stated that 
  TransformerHandlers should be reusable, but it is stated that Transformers 
  should be reusable, and my opinion is that it would be reasonable and natural 
! to be able to reuse TransformerHandlers as well.
--- 53,70 ----
  It's true, that in JAXP-1.1 specification it is not explicitly stated that 
  TransformerHandlers should be reusable, but it is stated that Transformers 
  should be reusable, and my opinion is that it would be reasonable and natural 
! to be able to reuse TransformerHandlers as well.
! 
! ------- Additional Comments From garyp@firstech.com  2001-04-04 01:39 -------
! I'm not sure when you'd decide that you were done with the TransformerHandler.  
! I might think endDocument() but couldn't you have a nested startDocument() 
! somehow?
! 
! In any event, I can suggest a possible workaround.  Please post to bugzilla if 
! it works (or doesn't).
! 
! After your endDocument(), add:
! 
! Transformer tr = th.getTransformer();
! if (tr instanceof TransformerImpl)
!   tr.reset();