You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2001/11/22 15:12:19 UTC
cvs commit: xml-cocoon2/bin/src st.java
cziegeler 01/11/22 06:12:19
Modified: bin Tag: cocoon_20_branch st.class
bin/src Tag: cocoon_20_branch st.java
Log:
Fixed sitemap tool
Revision Changes Path
No revision
No revision
1.1.2.4 +37 -36 xml-cocoon2/bin/st.class
<<Binary file>>
No revision
No revision
1.1.2.6 +6 -6 xml-cocoon2/bin/src/st.java
Index: st.java
===================================================================
RCS file: /home/cvs/xml-cocoon2/bin/src/st.java,v
retrieving revision 1.1.2.5
retrieving revision 1.1.2.6
diff -u -r1.1.2.5 -r1.1.2.6
--- st.java 2001/10/25 17:50:45 1.1.2.5
+++ st.java 2001/11/22 14:12:19 1.1.2.6
@@ -34,7 +34,7 @@
* Pretty printing
*
* @author <a href="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
- * @version CVS $Revision: 1.1.2.5 $ $Date: 2001/10/25 17:50:45 $
+ * @version CVS $Revision: 1.1.2.6 $ $Date: 2001/11/22 14:12:19 $
*/
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" );
----------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org