mrglavas 2003/10/17 10:41:41 Modified: java/src/org/apache/xml/serialize XML11Serializer.java Log: Nonterminal S is unchanged in XML 1.1, so NEL (0x85) and LSEP (0x2028) are not space characters. REVISIT: NEL and LSEP need to be escaped in order for them to be roundtripped, otherwise they will be normalized to LF when the document is read back. Revision Changes Path 1.6 +15 -3 xml-xerces/java/src/org/apache/xml/serialize/XML11Serializer.java Index: XML11Serializer.java =================================================================== RCS file: /home/cvs/xml-xerces/java/src/org/apache/xml/serialize/XML11Serializer.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- XML11Serializer.java 30 Jul 2003 11:14:08 -0000 1.5 +++ XML11Serializer.java 17 Oct 2003 17:41:41 -0000 1.6 @@ -475,7 +475,13 @@ } continue; } - if ( XML11Char.isXML11Space(ch)) + // Nonterminal S is unchanged in XML 1.1, so NEL (0x85) + // and LSEP (0x2028) are not space characters. + // + // REVISIT: NEL and LSEP need to be escaped in order for + // them to be roundtripped, otherwise they will be + // normalized to LF when the document is read back. - mrglavas + if ( XMLChar.isSpace(ch)) _printer.printSpace(); else if ( unescaped && XML11Char.isXML11ValidLiteral(ch) ) _printer.printText( ch ); @@ -533,7 +539,13 @@ } continue; } - if ( XML11Char.isXML11Space(ch)) + // Nonterminal S is unchanged in XML 1.1, so NEL (0x85) + // and LSEP (0x2028) are not space characters. + // + // REVISIT: NEL and LSEP need to be escaped in order for + // them to be roundtripped, otherwise they will be + // normalized to LF when the document is read back. - mrglavas + if (XMLChar.isSpace(ch)) _printer.printSpace(); else if ( unescaped && XML11Char.isXML11ValidLiteral(ch)) _printer.printText( ch );
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]