santiagopg    2003/11/05 05:26:28

  Modified:    java/src/org/apache/xalan/xsltc/trax TransformerImpl.java
  Log:
  Committing patch for Bugzilla 24414 by Bhakti Mehta ([EMAIL PROTECTED]).
  
  Revision  Changes    Path
  1.76      +12 -3     
xml-xalan/java/src/org/apache/xalan/xsltc/trax/TransformerImpl.java
  
  Index: TransformerImpl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/trax/TransformerImpl.java,v
  retrieving revision 1.75
  retrieving revision 1.76
  diff -u -r1.75 -r1.76
  --- TransformerImpl.java      4 Nov 2003 18:53:34 -0000       1.75
  +++ TransformerImpl.java      5 Nov 2003 13:26:27 -0000       1.76
  @@ -346,9 +346,18 @@
                   final ContentHandler handler = target.getHandler();
   
                _tohFactory.setHandler(handler);
  -             if (handler instanceof LexicalHandler) {
  -                 _tohFactory.setLexicalHandler((LexicalHandler) handler);
  +
  +                /**
  +                 * Fix for bug 24414
  +                 * If the lexicalHandler is set then we need to get that
  +                 * for obtaining the lexical information 
  +                 */
  +                LexicalHandler lexicalHandler = target.getLexicalHandler();
  +
  +                if (lexicalHandler != null ) {
  +                 _tohFactory.setLexicalHandler(lexicalHandler);
                }
  +
                _tohFactory.setOutputType(TransletOutputHandlerFactory.SAX);
                return _tohFactory.getSerializationHandler();
               }
  
  
  

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

Reply via email to