zongaro     2003/07/22 14:19:54

  Modified:    java/src/org/apache/xalan/templates FuncFormatNumb.java
  Log:
  Applying patch from Igor Hersht ([EMAIL PROTECTED]) for Bugzilla bug 6155.
  Prior to looking up an unnamed decimal format, the FuncFormatNumb.execute
  method was calling the stylesheet's getDecimalFormatCount method to save the
  cost of the look-up, in the event the result was zero.  The problem is that
  that method only returns the number of decimal-formats prior to composition of
  multiple stylesheets into a single stylesheet, so it was incorrectly returning
  zero always.  Now, the FuncFormatNumb.execute always performs the look-up.
  
  Revision  Changes    Path
  1.21      +1 -2      
xml-xalan/java/src/org/apache/xalan/templates/FuncFormatNumb.java
  
  Index: FuncFormatNumb.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/templates/FuncFormatNumb.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- FuncFormatNumb.java       30 Jan 2003 18:45:51 -0000      1.20
  +++ FuncFormatNumb.java       22 Jul 2003 21:19:54 -0000      1.21
  @@ -137,8 +137,7 @@
         {
   
           // look for a possible default decimal-format
  -        if (ss.getDecimalFormatCount() > 0)
  -          dfs = ss.getDecimalFormatComposed(new QName(""));
  +        dfs = ss.getDecimalFormatComposed(new QName(""));
   
           if (dfs != null)
           {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to