jaxp/src/com/sun/org/apache/xml/internal/serializer/ToXMLStream.java
changeset 12902 0a840d92fa30
parent 12458 d601e4bba306
child 23954 1161e065d446
equal deleted inserted replaced
12796:5c5a64ec0839 12902:0a840d92fa30
    54 
    54 
    55     /**
    55     /**
    56      * Map that tells which XML characters should have special treatment, and it
    56      * Map that tells which XML characters should have special treatment, and it
    57      *  provides character to entity name lookup.
    57      *  provides character to entity name lookup.
    58      */
    58      */
    59     private CharInfo m_xmlcharInfo =
    59     private static CharInfo m_xmlcharInfo =
    60 //      new CharInfo(CharInfo.XML_ENTITIES_RESOURCE);
    60 //      new CharInfo(CharInfo.XML_ENTITIES_RESOURCE);
    61         CharInfo.getCharInfo(CharInfo.XML_ENTITIES_RESOURCE, Method.XML);
    61         CharInfo.getCharInfo(CharInfo.XML_ENTITIES_RESOURCE, Method.XML);
    62 
    62 
    63     /**
    63     /**
    64      * Default constructor.
    64      * Default constructor.
   327                 writer.write('?');
   327                 writer.write('?');
   328                 writer.write('>');
   328                 writer.write('>');
   329 
   329 
   330                 /**
   330                 /**
   331                  * Before Xalan 1497, a newline char was printed out if not inside of an
   331                  * Before Xalan 1497, a newline char was printed out if not inside of an
   332                  * element. The whitespace is not significant if the output is standalone
   332                  * element. The whitespace is not significant is the output is standalone
   333                 */
   333                 */
   334                 if (m_elemContext.m_currentElemDepth <= 0 && m_isStandalone)
   334                 if (m_elemContext.m_currentElemDepth <= 0 && m_isStandalone)
   335                     writer.write(m_lineSep, 0, m_lineSepLen);
   335                     writer.write(m_lineSep, 0, m_lineSepLen);
       
   336 
   336 
   337 
   337                 /*
   338                 /*
   338                  * Don't write out any indentation whitespace now,
   339                  * Don't write out any indentation whitespace now,
   339                  * because there may be non-whitespace text after this.
   340                  * because there may be non-whitespace text after this.
   340                  *
   341                  *