morten      01/07/31 11:55:58

  Modified:    java/src/org/apache/xalan/xsltc/dom NodeCounter.java
  Log:
  Added a small fix to prevent unwanted output when using the xsl:number
  element.
  PR:           n/a
  Obtained from:        n/a
  Submitted by: [EMAIL PROTECTED]
  Reviewed by:  [EMAIL PROTECTED]
  
  Revision  Changes    Path
  1.2       +6 -1      
xml-xalan/java/src/org/apache/xalan/xsltc/dom/NodeCounter.java
  
  Index: NodeCounter.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/dom/NodeCounter.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- NodeCounter.java  2001/04/17 18:52:33     1.1
  +++ NodeCounter.java  2001/07/31 18:55:58     1.2
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: NodeCounter.java,v 1.1 2001/04/17 18:52:33 sboag Exp $
  + * @(#)$Id: NodeCounter.java,v 1.2 2001/07/31 18:55:58 morten Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -196,6 +196,11 @@
   
           boolean isFirst = true;
        boolean separFirst = true;
  +     boolean isEmpty = true;
  +
  +     for (int t=0; t<nValues; t++)
  +         if (values[t] != Integer.MIN_VALUE) isEmpty = false;
  +     if (isEmpty) return("");
   
        /* 
         * Tokenize the format string into alphanumeric and non-alphanumeric
  
  
  

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

Reply via email to