morten      01/11/27 05:55:28

  Modified:    java/src/org/apache/xalan/xsltc/compiler Parser.java
  Log:
  Another fix for 3005 (special characters inside CDATA).
  PR:           bugzilla 3005
  Obtained from:        n/a
  Submitted by: [EMAIL PROTECTED]
  Reviewed by:  [EMAIL PROTECTED]
  
  Revision  Changes    Path
  1.37      +5 -3      
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.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- Parser.java       2001/11/22 13:08:23     1.36
  +++ Parser.java       2001/11/27 13:55:28     1.37
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: Parser.java,v 1.36 2001/11/22 13:08:23 morten Exp $
  + * @(#)$Id: Parser.java,v 1.37 2001/11/27 13:55:28 morten Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -1164,8 +1164,10 @@
        if ((bro != null) && (bro instanceof Text)) {
            Text text = (Text)bro;
            if (!text.isTextElement()) {
  -             text.setText(string);
  -             return;
  +             if ((length > 1) || ( ((int)ch[0]) < 0x100)) {
  +                 text.setText(string);
  +                 return;
  +             }
            }
        }
   
  
  
  

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

Reply via email to