You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by jy...@apache.org on 2004/02/02 20:50:09 UTC

cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/compiler Stylesheet.java

jycli       2004/02/02 11:50:09

  Modified:    java/src/org/apache/xalan/xsltc/compiler Stylesheet.java
  Log:
  Fix for bugzilla bug report 23046.
  
  For included stylesheet, set the _numberFormattingUsed flag to true
  for its including stylesheet too
  
  Reviewed by Henry Zongaro (zongaro@ca.ibm.com)
  
  Revision  Changes    Path
  1.58      +9 -1      xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Stylesheet.java
  
  Index: Stylesheet.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Stylesheet.java,v
  retrieving revision 1.57
  retrieving revision 1.58
  diff -u -r1.57 -r1.58
  --- Stylesheet.java	24 Nov 2003 22:18:54 -0000	1.57
  +++ Stylesheet.java	2 Feb 2004 19:50:09 -0000	1.58
  @@ -340,6 +340,14 @@
   
       public void numberFormattingUsed() {
   	_numberFormattingUsed = true;
  +        /*
  +         * Fix for bug 23046, if the stylesheet is included, set the 
  +         * numberFormattingUsed flag to the parent stylesheet too.
  +         * AbstractTranslet.addDecimalFormat() will be inlined once for the
  +         * outer most stylesheet. 
  +         */ 
  +        Stylesheet parent = getParentStylesheet();
  +        if (null != parent) parent.numberFormattingUsed();        
       }
   
       public void setImportPrecedence(final int precedence) {
  
  
  

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