minchau 2004/06/01 15:43:30
Modified: java/src/org/apache/xml/serializer ToStream.java
Log:
PR: bugzilla 29234
Submitted by: Brian Minchau
Reviewed by: Morris Kwan
This problem only showed up under XSLTC. When setting the
encoding a related field was not set. Fixed this by over-riding the
set method for the stream serializers.
Revision Changes Path
1.30 +12 -1
xml-xalan/java/src/org/apache/xml/serializer/ToStream.java
Index: ToStream.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xml/serializer/ToStream.java,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- ToStream.java 18 Feb 2004 22:57:44 -0000 1.29
+++ ToStream.java 1 Jun 2004 22:43:30 -0000 1.30
@@ -2908,4 +2908,15 @@
// this.m_writer = null;
}
+
+ /**
+ * Sets the character encoding coming from the xsl:output encoding
stylesheet attribute.
+ * @param encoding the character encoding
+ */
+ public void setEncoding(String encoding)
+ {
+ super.setEncoding(encoding);
+ m_maxCharacter = Encodings.getLastPrintable(encoding);
+ return;
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]