You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2001/03/09 12:41:42 UTC
cvs commit: xml-cocoon/src/org/apache/cocoon/serialization HTMLSerializer.java TextSerializer.java XMLSerializer.java
cziegeler 01/03/09 03:41:40
Modified: src/org/apache/cocoon/serialization Tag: xml-cocoon2
HTMLSerializer.java TextSerializer.java
XMLSerializer.java
Log:
Added lexical handler to serializer for comments etc. in the serialized output
Revision Changes Path
No revision
No revision
1.1.2.15 +2 -1 xml-cocoon/src/org/apache/cocoon/serialization/Attic/HTMLSerializer.java
Index: HTMLSerializer.java
===================================================================
RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/serialization/Attic/HTMLSerializer.java,v
retrieving revision 1.1.2.14
retrieving revision 1.1.2.15
diff -u -r1.1.2.14 -r1.1.2.15
--- HTMLSerializer.java 2001/02/22 17:10:44 1.1.2.14
+++ HTMLSerializer.java 2001/03/09 11:41:31 1.1.2.15
@@ -20,7 +20,7 @@
/**
* @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
- * @version CVS $Revision: 1.1.2.14 $ $Date: 2001/02/22 17:10:44 $
+ * @version CVS $Revision: 1.1.2.15 $ $Date: 2001/03/09 11:41:31 $
*/
public class HTMLSerializer extends AbstractTextSerializer implements Poolable {
@@ -38,6 +38,7 @@
handler.setResult(new StreamResult(out));
handler.getTransformer().setOutputProperties(format);
this.setContentHandler(handler);
+ this.setLexicalHandler(handler);
} catch (Exception e) {
getLogger().error("HTMLSerializer.setOutputStream()", e);
throw new RuntimeException(e.toString());
1.1.2.11 +3 -2 xml-cocoon/src/org/apache/cocoon/serialization/Attic/TextSerializer.java
Index: TextSerializer.java
===================================================================
RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/serialization/Attic/TextSerializer.java,v
retrieving revision 1.1.2.10
retrieving revision 1.1.2.11
diff -u -r1.1.2.10 -r1.1.2.11
--- TextSerializer.java 2001/02/22 17:10:45 1.1.2.10
+++ TextSerializer.java 2001/03/09 11:41:33 1.1.2.11
@@ -20,7 +20,7 @@
/**
* @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
- * @version CVS $Revision: 1.1.2.10 $ $Date: 2001/02/22 17:10:45 $
+ * @version CVS $Revision: 1.1.2.11 $ $Date: 2001/03/09 11:41:33 $
*/
public class TextSerializer extends AbstractTextSerializer implements Poolable {
@@ -38,7 +38,8 @@
handler.setResult(new StreamResult(out));
handler.getTransformer().setOutputProperties(format);
this.setContentHandler(handler);
- } catch (Exception e) {
+ this.setLexicalHandler(handler);
+ } catch (Exception e) {
getLogger().error("TextSerializer.setOutputStream()", e);
throw new RuntimeException(e.toString());
}
1.1.2.15 +2 -1 xml-cocoon/src/org/apache/cocoon/serialization/Attic/XMLSerializer.java
Index: XMLSerializer.java
===================================================================
RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/serialization/Attic/XMLSerializer.java,v
retrieving revision 1.1.2.14
retrieving revision 1.1.2.15
diff -u -r1.1.2.14 -r1.1.2.15
--- XMLSerializer.java 2001/02/22 17:10:46 1.1.2.14
+++ XMLSerializer.java 2001/03/09 11:41:34 1.1.2.15
@@ -20,7 +20,7 @@
/**
* @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
- * @version CVS $Revision: 1.1.2.14 $ $Date: 2001/02/22 17:10:46 $
+ * @version CVS $Revision: 1.1.2.15 $ $Date: 2001/03/09 11:41:34 $
*/
public class XMLSerializer extends AbstractTextSerializer implements Poolable {
@@ -38,6 +38,7 @@
handler.setResult(new StreamResult(out));
handler.getTransformer().setOutputProperties(format);
this.setContentHandler(handler);
+ this.setLexicalHandler(handler);
} catch (Exception e) {
getLogger().error("XMLSerializer.setOutputStream()", e);
throw new RuntimeException(e.toString());
----------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org