cziegeler    01/11/22 06:12:39

  Modified:    bin      st.class
               bin/src  st.java
  Log:
  Fixed sitemap tool
  
  Revision  Changes    Path
  1.4       +37 -36    xml-cocoon2/bin/st.class
  
        <<Binary file>>
  
  
  1.7       +7 -7      xml-cocoon2/bin/src/st.java
  
  Index: st.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/bin/src/st.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- st.java   2001/10/25 17:49:03     1.6
  +++ st.java   2001/11/22 14:12:39     1.7
  @@ -34,7 +34,7 @@
    * Pretty printing
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Carsten Ziegeler</a>
  - * @version CVS $Revision: 1.6 $ $Date: 2001/10/25 17:49:03 $
  + * @version CVS $Revision: 1.7 $ $Date: 2001/11/22 14:12:39 $
    */
   
   public class st
  @@ -190,10 +190,10 @@
                       String searchString = new StringBuffer( "</map:" ).append( arg1 
).append( ">" ).toString();
                       int pos = data.indexOf( searchString );
                       int categoryStartPos = data.indexOf(
  -                            new StringBuffer( "</map:" ).append( arg1 ).append( ">" 
).toString() );
  +                            new StringBuffer( "<map:" ).append( arg1 ).append( ">" 
).toString() );
                       if ( categoryStartPos == -1 )
                           categoryStartPos = data.indexOf(
  -                                new StringBuffer( "</map:" ).append( arg1 ).append( 
" " ).toString() );
  +                                new StringBuffer( "<map:" ).append( arg1 ).append( 
" " ).toString() );
                       if ( categoryStartPos != -1 && categoryStartPos < pos && pos != 
-1 )
                       {
                           // the category exists, now search if a component
  @@ -206,15 +206,15 @@
                                       .append( "<map:" ).append( arg1.substring( 0, 
arg1.length() - 1 ) )
                                       .append( " name=\"" ).append( arg2 ).append( 
"\" src=\"" ).append( arg3 ).append( "\"" );
   
  -                            if ( null == mimeType )
  +                            if ( null != mimeType )
                               {
                                   buffer.append( " mime-type=\"" ).append( mimeType 
).append( "\"" );
                               }
  -                            if ( null == label )
  +                            if ( null != label )
                               {
                                   buffer.append( " label=\"" ).append( label 
).append( "\"" );
                               }
  -                            if ( null == arg4 )
  +                            if ( null != arg4 )
                               {
                                   buffer.append( ">\n" ).append( arg4 ).append( "\n" )
                                           .append( "</map:" ).append( arg1.substring( 
0, arg1.length() - 1 ) ).append( ">\n" );
  @@ -238,4 +238,4 @@
               }
           }
       }
  -}
  \ No newline at end of file
  +}
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to