pbwest      2002/10/02 20:27:29

  Modified:    src/org/apache/fop/xml Tag: FOP_0-20-0_Alt-Design
                        XMLNamespaces.java
  Log:
  Fixed problem adding namespace.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.2   +6 -4      xml-fop/src/org/apache/fop/xml/Attic/XMLNamespaces.java
  
  Index: XMLNamespaces.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/xml/Attic/XMLNamespaces.java,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- XMLNamespaces.java        16 Sep 2002 04:20:25 -0000      1.1.2.1
  +++ XMLNamespaces.java        3 Oct 2002 03:27:29 -0000       1.1.2.2
  @@ -36,7 +36,7 @@
       public static final int DefAttrNSIndex = 0;
       public static final int XSLNSpaceIndex = 1;
       public static final int SVGNSpaceIndex = 2;
  -    public static final int XLinkNSpaceIndex = 1;
  +    public static final int XLinkNSpaceIndex = 3;
   
       /**
        * A <tt>HashMap</tt> mapping a namespace URI to an <tt>int</tt>
  @@ -99,7 +99,9 @@
           if (intg == null) {
               // update the indices
               i = uris.size();
  +            //System.out.println("****Adding namespace " + uri + " " + i);
               uriIndices.put(uri, Ints.consts.get(i));
  +            uris.add(i, uri);
               return i;
           }
           // not null - found the integer
  
  
  

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

Reply via email to