morten      01/10/23 06:52:22

  Modified:    java/src/org/apache/xalan/xsltc/compiler Mode.java
  Removed:     java/src/org/apache/xalan/xsltc/compiler header.txt
  Log:
  Fix for names templates. Dashes and dots in template names are now
  escaped using '$dash$' and '$dot$'.
  PR:           n/a
  Obtained from:        n/a
  Submitted by: [EMAIL PROTECTED]
  Reviewed by:  [EMAIL PROTECTED]
  
  Revision  Changes    Path
  1.12      +2 -4      xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Mode.java
  
  Index: Mode.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Mode.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- Mode.java 2001/10/17 09:43:12     1.11
  +++ Mode.java 2001/10/23 13:52:22     1.12
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: Mode.java,v 1.11 2001/10/17 09:43:12 morten Exp $
  + * @(#)$Id: Mode.java,v 1.12 2001/10/23 13:52:22 morten Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -314,9 +314,7 @@
                                      ClassGenerator classGen) {
        final ConstantPoolGen cpg = classGen.getConstantPool();
        final InstructionList il = new InstructionList();
  -     String methodName = template.getName().toString();
  -     methodName = methodName.replace('.', '$');
  -     methodName = methodName.replace('-', '$');
  +     String methodName = Util.escape(template.getName().toString());
   
        final NamedMethodGenerator methodGen =
            new NamedMethodGenerator(ACC_PUBLIC,
  
  
  

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

Reply via email to