equal
deleted
inserted
replaced
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 * |