sboag       00/12/05 21:26:49

  Modified:    java/src/org/apache/xalan/processor
                        ProcessorDecimalFormat.java
  Log:
  Add to stylesheet child list, so that element can get to it's parent.  This to
  solve the exception:
  
  java.lang.NullPointerException
          at 
org.apache.xalan.templates.ElemTemplateElement.getStylesheetComposed(
  ElemTemplateElement.java:193)
          at 
org.apache.xalan.templates.ElemTemplateElement.compareTo(ElemTemplate
  Element.java:1179)
          at 
org.apache.xalan.templates.StylesheetRoot.QuickSort2(StylesheetRoot.j
  ava:973)
  
  etc.  Not sure why Gary didn't see this?
  
  Revision  Changes    Path
  1.6       +2 -0      
xml-xalan/java/src/org/apache/xalan/processor/ProcessorDecimalFormat.java
  
  Index: ProcessorDecimalFormat.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/processor/ProcessorDecimalFormat.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ProcessorDecimalFormat.java       2000/11/30 09:57:29     1.5
  +++ ProcessorDecimalFormat.java       2000/12/06 05:26:48     1.6
  @@ -103,5 +103,7 @@
   
       setPropertiesFromAttributes(handler, rawName, attributes, dfp);
       handler.getStylesheet().setDecimalFormat(dfp);
  +    
  +    handler.getStylesheet().appendChild(dfp);
     }
   }
  
  
  

Reply via email to