zongaro     2004/01/04 12:04:04

  Modified:    java/src/org/apache/xalan/templates
                        RedundentExprEliminator.java XSLTVisitor.java
  Log:
  Made methods in this class public, as is the case in the XPathVisitor class 
that
  it extends.  Having the class be public, but none of the methods public isn't
  helpful.
  
  Contributed by Warwick Burrows (wburrows at us.ibm.com).
  
  Revision  Changes    Path
  1.7       +3 -3      
xml-xalan/java/src/org/apache/xalan/templates/RedundentExprEliminator.java
  
  Index: RedundentExprEliminator.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/templates/RedundentExprEliminator.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- RedundentExprEliminator.java      30 Jan 2003 18:45:51 -0000      1.6
  +++ RedundentExprEliminator.java      4 Jan 2004 20:04:03 -0000       1.7
  @@ -1181,7 +1181,7 @@
      * @param elem The xsl instruction element object.
      * @return true if the sub expressions should be traversed.
      */
  -   boolean visitTopLevelInstruction(ElemTemplateElement elem)
  +   public boolean visitTopLevelInstruction(ElemTemplateElement elem)
      {
        int type = elem.getXSLToken();
        switch(type)
  @@ -1201,7 +1201,7 @@
      * @param elem The xsl instruction element object.
      * @return true if the sub expressions should be traversed.
      */
  -  boolean visitInstruction(ElemTemplateElement elem)
  +  public boolean visitInstruction(ElemTemplateElement elem)
     {
       int type = elem.getXSLToken();
       switch (type)
  @@ -1470,4 +1470,4 @@
        
     }
   
  -}
  \ No newline at end of file
  +}
  
  
  
  1.5       +10 -10    
xml-xalan/java/src/org/apache/xalan/templates/XSLTVisitor.java
  
  Index: XSLTVisitor.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/templates/XSLTVisitor.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- XSLTVisitor.java  30 Jan 2003 18:45:51 -0000      1.4
  +++ XSLTVisitor.java  4 Jan 2004 20:04:04 -0000       1.5
  @@ -61,8 +61,8 @@
   /**
    * A derivation from this class can be passed to a class that implements 
    * the XSLTVisitable interface, to have the appropriate method called 
  - * for each component of an XSLT stylesheet.  Aside from possible other 
uses, the 
  - * main intention is to provide a reasonable means to perform expression 
  + * for each component of an XSLT stylesheet.  Aside from possible other uses,
  + * the main intention is to provide a reasonable means to perform expression 
    * rewriting.
    */
   public class XSLTVisitor extends XPathVisitor
  @@ -74,7 +74,7 @@
         * @param elem The xsl instruction element object.
         * @return true if the sub expressions should be traversed.
         */
  -     boolean visitInstruction(ElemTemplateElement elem)
  +     public boolean visitInstruction(ElemTemplateElement elem)
        {
                return true;
        }
  @@ -85,7 +85,7 @@
         * @param elem The xsl instruction element object.
         * @return true if the sub expressions should be traversed.
         */
  -     boolean visitStylesheet(ElemTemplateElement elem)
  +     public boolean visitStylesheet(ElemTemplateElement elem)
        {
                return true;
        }
  @@ -97,7 +97,7 @@
         * @param elem The xsl instruction element object.
         * @return true if the sub expressions should be traversed.
         */
  -     boolean visitTopLevelInstruction(ElemTemplateElement elem)
  +     public boolean visitTopLevelInstruction(ElemTemplateElement elem)
        {
                return true;
        }
  @@ -108,7 +108,7 @@
         * @param elem The xsl instruction element object.
         * @return true if the sub expressions should be traversed.
         */
  -     boolean visitTopLevelVariableOrParamDecl(ElemTemplateElement elem)
  +     public boolean visitTopLevelVariableOrParamDecl(ElemTemplateElement 
elem)
        {
                return true;
        }
  @@ -120,7 +120,7 @@
         * @param elem The xsl instruction element object.
         * @return true if the sub expressions should be traversed.
         */
  -     boolean visitVariableOrParamDecl(ElemVariable elem)
  +     public boolean visitVariableOrParamDecl(ElemVariable elem)
        {
                return true;
        }
  @@ -131,7 +131,7 @@
         * @param elem The literal result object.
         * @return true if the sub expressions should be traversed.
         */
  -     boolean visitLiteralResultElement(ElemLiteralResult elem)
  +     public boolean visitLiteralResultElement(ElemLiteralResult elem)
        {
                return true;
        }
  @@ -144,7 +144,7 @@
         * @param elem The attribute value template object.
         * @return true if the sub expressions should be traversed.
         */
  -     boolean visitAVT(AVT elem)
  +     public boolean visitAVT(AVT elem)
        {
                return true;
        }
  @@ -155,7 +155,7 @@
         * @param elem The extension object.
         * @return true if the sub expressions should be traversed.
         */
  -     boolean visitExtensionElement(ElemExtensionCall elem)
  +     public boolean visitExtensionElement(ElemExtensionCall elem)
        {
                return true;
        }
  
  
  

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

Reply via email to