You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cr...@apache.org on 2003/05/03 06:41:23 UTC

cvs commit: cocoon-2.1/src/java/org/apache/cocoon/generation LinkStatusGenerator.java

crossley    2003/05/02 21:41:22

  Modified:    src/java/org/apache/cocoon/generation
                        LinkStatusGenerator.java
  Log:
  PREFIX and URI were switched. It was adding the namespace-URI in front of each
  tag (instead of the prefix).
  PR: 19593
  Submitted by: Arje Cahn <arje.AT.hippo.nl>
  
  Revision  Changes    Path
  1.3       +5 -5      cocoon-2.1/src/java/org/apache/cocoon/generation/LinkStatusGenerator.java
  
  Index: LinkStatusGenerator.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/generation/LinkStatusGenerator.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- LinkStatusGenerator.java	16 Mar 2003 17:49:15 -0000	1.2
  +++ LinkStatusGenerator.java	3 May 2003 04:41:22 -0000	1.3
  @@ -379,7 +379,7 @@
               this.contentHandler.startPrefixMapping(PREFIX, URI);
   
               attributes.clear();
  -            super.contentHandler.startElement(URI, TOP_NODE_NAME, URI + ':' + TOP_NODE_NAME, attributes);
  +            super.contentHandler.startElement(URI, TOP_NODE_NAME, PREFIX + ':' + TOP_NODE_NAME, attributes);
   
               while (linksToProcess.size() > 0) {
                   Iterator i = linksToProcess.iterator();
  @@ -406,7 +406,7 @@
                   }
               }
   
  -            super.contentHandler.endElement(URI, TOP_NODE_NAME, URI + ':' + TOP_NODE_NAME);
  +            super.contentHandler.endElement(URI, TOP_NODE_NAME, PREFIX + ':' + TOP_NODE_NAME);
               this.contentHandler.endPrefixMapping(PREFIX);
               this.contentHandler.endDocument();
           } catch (IOException ioe) {
  @@ -606,8 +606,8 @@
                       + linkViewQuery;
           }
   
  -        super.contentHandler.startElement(URI, LINK_NODE_NAME, URI + ':' + LINK_NODE_NAME, attributes);
  -        super.contentHandler.endElement(URI, LINK_NODE_NAME, URI + ':' + LINK_NODE_NAME);
  +        super.contentHandler.startElement(URI, LINK_NODE_NAME, PREFIX + ':' + LINK_NODE_NAME, attributes);
  +        super.contentHandler.endElement(URI, LINK_NODE_NAME, PREFIX + ':' + LINK_NODE_NAME);
   
           return result;
       }