tmiller 01/05/21 12:35:46
Modified: java/src/org/apache/xalan/xsltc/runtime TextOutput.java
Log:
bug fix 1499, text output method and copy of
Revision Changes Path
1.6 +14 -2
xml-xalan/java/src/org/apache/xalan/xsltc/runtime/TextOutput.java
Index: TextOutput.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/runtime/TextOutput.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- TextOutput.java 2001/05/21 15:13:11 1.5
+++ TextOutput.java 2001/05/21 19:35:43 1.6
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: TextOutput.java,v 1.5 2001/05/21 15:13:11 morten Exp $
+ * @(#)$Id: TextOutput.java,v 1.6 2001/05/21 19:35:43 tmiller Exp $
*
* The Apache Software License, Version 1.1
*
@@ -456,6 +456,10 @@
*/
public void startElement(String elementName)
throws TransletException {
+
+ // bug fix # 1499, GTM.
+ if (_outputType == TEXT) return;
+
try {
// Close any open start tag
if (_startTagOpen) {
@@ -479,7 +483,7 @@
}
}
- _depth++;
+ _depth++;
_elementName = elementName;
_attributes.clear();
_startTagOpen = true;
@@ -549,6 +553,10 @@
*/
public void attribute(final String name, final String value)
throws TransletException {
+
+ // bug fix #1499, GTM
+ if (_outputType == TEXT) return;
+
if (_startTagOpen) {
// Intercept namespace declarations and handle them separately
if (name.startsWith("xmlns"))
@@ -569,6 +577,10 @@
* End an element or CDATA section in the output document
*/
public void endElement(String elementName) throws TransletException {
+
+ // bug fix #1499, GTM
+ if (_outputType == TEXT) return;
+
try {
// Close any open element
if (_startTagOpen) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]