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 2005/05/17 23:26:31 UTC

cvs commit: xml-xalan/java/src/org/apache/xalan/processor StylesheetHandler.java

jycli       2005/05/17 14:26:31

  Modified:    java/src/org/apache/xalan/processor StylesheetHandler.java
  Log:
  Modified FunctionTable. Although it is not recommanded, but it is doable for users to add a customized function or overwrite the default implementation of a build-in function. Fixed bug report XALANJ-2116
  patch is reviewed by Henry Zongaro
  
  Revision  Changes    Path
  1.69      +3 -3      xml-xalan/java/src/org/apache/xalan/processor/StylesheetHandler.java
  
  Index: StylesheetHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/processor/StylesheetHandler.java,v
  retrieving revision 1.68
  retrieving revision 1.69
  diff -u -r1.68 -r1.69
  --- StylesheetHandler.java	24 Jan 2005 04:04:39 -0000	1.68
  +++ StylesheetHandler.java	17 May 2005 21:26:31 -0000	1.69
  @@ -97,12 +97,12 @@
     public StylesheetHandler(TransformerFactoryImpl processor)
             throws TransformerConfigurationException
     {
  -    Function func = new org.apache.xalan.templates.FuncDocument();
  +    Class func = org.apache.xalan.templates.FuncDocument.class;
       m_funcTable.installFunction("document", func);
   
       // func = new org.apache.xalan.templates.FuncKey();
       // FunctionTable.installFunction("key", func);
  -    func = new org.apache.xalan.templates.FuncFormatNumb();
  +    func = org.apache.xalan.templates.FuncFormatNumb.class;
   
       m_funcTable.installFunction("format-number", func);
   
  
  
  

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