jeremias    2003/11/07 13:23:58

  Modified:    examples/plan/src/org/apache/fop/plan
                        PlanElementMapping.java PlanElement.java
  Log:
  Put namespace URI in public constant
  
  Revision  Changes    Path
  1.4       +6 -3      
xml-fop/examples/plan/src/org/apache/fop/plan/PlanElementMapping.java
  
  Index: PlanElementMapping.java
  ===================================================================
  RCS file: 
/home/cvs/xml-fop/examples/plan/src/org/apache/fop/plan/PlanElementMapping.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- PlanElementMapping.java   12 Jul 2003 21:22:03 -0000      1.3
  +++ PlanElementMapping.java   7 Nov 2003 21:23:58 -0000       1.4
  @@ -63,8 +63,11 @@
    */
   public class PlanElementMapping extends ElementMapping {
   
  +    /** Plan Namespace */
  +    public static final String NAMESPACE = "http://xml.apache.org/fop/plan";; 
  +
       public PlanElementMapping() {
  -        URI = "http://xml.apache.org/fop/plan";;
  +        this.namespaceURI = NAMESPACE;
       }
   
       protected void initialize() {
  @@ -73,7 +76,7 @@
               foObjs.put("plan", new PE());
               foObjs.put(DEFAULT, new PlanMaker());
   
  -            XMLReader.setConverter(URI, new PlanConverter());
  +            XMLReader.setConverter(this.namespaceURI, new PlanConverter());
           }
       }
   
  
  
  
  1.3       +2 -2      xml-fop/examples/plan/src/org/apache/fop/plan/PlanElement.java
  
  Index: PlanElement.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/examples/plan/src/org/apache/fop/plan/PlanElement.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PlanElement.java  7 Mar 2003 10:47:51 -0000       1.2
  +++ PlanElement.java  7 Nov 2003 21:23:58 -0000       1.3
  @@ -119,7 +119,7 @@
        */
       public String getDocumentNamespace() {
           if (svgDoc == null) {
  -            return PlanElementMapping.URI;
  +            return PlanElementMapping.NAMESPACE;
           }
           return "http://www.w3.org/2000/svg";;
       }
  
  
  

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

Reply via email to