mmidy       00/11/15 09:16:43

  Modified:    java/src/org/apache/xalan/transformer ResultTreeHandler.java
  Log:
  Don't suppress output of whitespace before the first element.
  
  Revision  Changes    Path
  1.24      +7 -3      
xml-xalan/java/src/org/apache/xalan/transformer/ResultTreeHandler.java
  
  Index: ResultTreeHandler.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/transformer/ResultTreeHandler.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- ResultTreeHandler.java    2000/11/13 16:27:19     1.23
  +++ ResultTreeHandler.java    2000/11/15 17:16:43     1.24
  @@ -403,9 +403,13 @@
     public void characters(char ch[], int start, int length) throws 
org.xml.sax.SAXException
     {
   
  -    if (m_startDoc.isPending
  -            && XMLCharacterRecognizer.isWhiteSpace(ch, start, length))
  -      return;
  +    // It would be nice to suppress all whitespace before the
  +    // first element, but this is going to cause potential problems with 
  +    // text serialization and with text entities (right term?).
  +    // So this really needs to be done at the serializer level.
  +    /*if (m_startDoc.isPending
  +    && XMLCharacterRecognizer.isWhiteSpace(ch, start, length))
  +    return;*/
   
       flushPending(EVT_CHARACTERS);
       m_contentHandler.characters(ch, start, length);
  
  
  

Reply via email to