keiron      01/08/15 04:31:27

  Modified:    src/org/apache/fop/render/xml XMLRenderer.java
               src/org/apache/fop/tools TestConverter.java
  Log:
  added YAS to specify if output should be consistent, default is false
  
  Revision  Changes    Path
  1.24      +12 -3     xml-fop/src/org/apache/fop/render/xml/XMLRenderer.java
  
  Index: XMLRenderer.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/render/xml/XMLRenderer.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- XMLRenderer.java  2001/08/01 23:08:55     1.23
  +++ XMLRenderer.java  2001/08/15 11:31:27     1.24
  @@ -1,5 +1,5 @@
   /*
  - * $Id: XMLRenderer.java,v 1.23 2001/08/01 23:08:55 gears Exp $
  + * $Id: XMLRenderer.java,v 1.24 2001/08/15 11:31:27 keiron Exp $
    * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
    * For details on use and redistribution please refer to the
    * LICENSE file included with these sources.
  @@ -51,6 +51,7 @@
        * options
        */
       protected Hashtable options;
  +    private boolean consistentOutput = false;
   
       public XMLRenderer() {}
   
  @@ -59,6 +60,10 @@
        */
       public void setOptions(Hashtable options) {
           this.options = options;
  +        Boolean con = (Boolean)options.get("consistentOutput");
  +        if(con != null) {
  +            consistentOutput = con.booleanValue();
  +        }
       }
   
       /**
  @@ -199,8 +204,12 @@
           baText.append(" is-last=\"" + area.isLast() + "\"");
           if (null != area.getGeneratedBy())
               baText.append(" generated-by=\""
  -                          + area.getGeneratedBy().getName() + "//"
  -                          + area.getGeneratedBy() + "\"");
  +                          + area.getGeneratedBy().getName() + "//");
  +            if(consistentOutput) {
  +                baText.append(area.getGeneratedBy().getClass() + "\"");
  +            } else {
  +                baText.append(area.getGeneratedBy() + "\"");
  +            }
           baText.append(">");
           writeStartTag(baText.toString());
   
  
  
  
  1.11      +2 -1      xml-fop/src/org/apache/fop/tools/TestConverter.java
  
  Index: TestConverter.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/tools/TestConverter.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- TestConverter.java        2001/08/10 06:19:16     1.10
  +++ TestConverter.java        2001/08/15 11:31:27     1.11
  @@ -1,5 +1,5 @@
   /*
  - * $Id: TestConverter.java,v 1.10 2001/08/10 06:19:16 keiron Exp $
  + * $Id: TestConverter.java,v 1.11 2001/08/15 11:31:27 keiron Exp $
    * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
    * For details on use and redistribution please refer to the
    * LICENSE file included with these sources.
  @@ -226,6 +226,7 @@
   
               Hashtable rendererOptions = new Hashtable();
               rendererOptions.put("fineDetail", new Boolean(false));
  +            rendererOptions.put("consistentOutput", new Boolean(true));
               driver.getRenderer().setOptions(rendererOptions);
               driver.getRenderer().setProducer("Testsuite Converter");
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to