mkwan       2002/09/16 12:38:17

  Modified:    java/src/org/apache/xalan/xsltc/compiler Parser.java
  Log:
  For extension integration. Add the objectType extension function to the
  Symbol Table. Maps the redirect:write element to the TransletOutPut class.
  
  Revision  Changes    Path
  1.52      +9 -2      
xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Parser.java
  
  Index: Parser.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Parser.java,v
  retrieving revision 1.51
  retrieving revision 1.52
  diff -u -r1.51 -r1.52
  --- Parser.java       25 Jul 2002 11:44:19 -0000      1.51
  +++ Parser.java       16 Sep 2002 19:38:17 -0000      1.52
  @@ -719,6 +719,7 @@
   
       private void initExtClasses() {
        initExtClass("output", "TransletOutput");
  +        initExtClass(REDIRECT_URI, "write", "TransletOutput");
       }
   
       private void initExtClass(String elementName, String className) {
  @@ -726,6 +727,11 @@
                                COMPILER_PACKAGE + '.' + className);
       }
   
  +    private void initExtClass(String namespace, String elementName, String 
className) {
  +        _instructionClasses.put(getQName(namespace, TRANSLET, elementName),
  +                                COMPILER_PACKAGE + '.' + className);
  +    }
  +
       /**
        * Add primops and base functions to the symbol table.
        */
  @@ -840,7 +846,8 @@
        _symbolTable.addPrimop("system-property", S_S);
   
        // Extensions
  -     _symbolTable.addPrimop("nodeset", D_X);
  +        _symbolTable.addPrimop("nodeset", D_O);
  +        _symbolTable.addPrimop("objectType", S_O);
   
        // Operators +, -, *, /, % defined on real types.
        _symbolTable.addPrimop("+", R_RR);      
  
  
  

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

Reply via email to