cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@locus.apache.org
Subject cvs commit: xml-stylebook/src/org/apache/stylebook/printers HTMLSerializer.java
Date Wed, 02 Feb 2000 09:53:37 GMT
pier        00/02/02 01:53:37

  Modified:    src/org/apache/stylebook/printers HTMLSerializer.java
  Log:
  Updates to current XERCES Serializer code.
  Thanks to Ingo Macherius <macherius@darmstadt.gmd.de>
  
  Revision  Changes    Path
  1.2       +6 -3      xml-stylebook/src/org/apache/stylebook/printers/HTMLSerializer.java
  
  Index: HTMLSerializer.java
  ===================================================================
  RCS file: /home/cvs/xml-stylebook/src/org/apache/stylebook/printers/HTMLSerializer.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- HTMLSerializer.java	2000/01/03 16:56:48	1.1
  +++ HTMLSerializer.java	2000/02/02 09:53:37	1.2
  @@ -20,7 +20,7 @@
    * @author <a href="mailto:pier@apache.org">Pierpaolo Fumagalli</a>
    * @author Copyright 1999 &copy; <a href="http://www.apache.org">The Apache
    *         Software Foundation</a>. All rights reserved.
  - * @version CVS $Revision: 1.1 $ $Date: 2000/01/03 16:56:48 $
  + * @version CVS $Revision: 1.2 $ $Date: 2000/02/02 09:53:37 $
    */
   public class HTMLSerializer extends AbstractComponent implements Printer {
   
  @@ -35,9 +35,12 @@
        */
       public void print(Document doc, CreationContext c, OutputStream out)
       throws CreationException, IOException {
  -        OutputFormat f=new OutputFormat(OutputFormat.METHOD_XHTML,
  +        // Thanks to  Ingo Macherius <macherius@darmstadt.gmd.de>
  +        //OutputFormat f=new OutputFormat(OutputFormat.METHOD_XHTML,
  +        OutputFormat f=new OutputFormat(Method.XHTML,
                                           "US-ASCII",true);
  -        Serializer s=Serializer.makeSerializer(out,f);
  +        //Serializer s=Serializer.makeSerializer(out,f);
  +        XHTMLSerializer s = new XHTMLSerializer(out, f);
           s.serialize(doc);
       }
   }
  
  
  

Mime
View raw message