jakarta-watchdog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sant...@locus.apache.org
Subject cvs commit: jakarta-watchdog-4.0/src/tools/org/apache/jspxml jsp2XML.java
Date Thu, 30 Nov 2000 23:57:45 GMT
santosh     00/11/30 15:57:45

  Modified:    src/tools/org/apache/jspxml jsp2XML.java
  Log:
  Minor changes
  
  Revision  Changes    Path
  1.4       +8 -8      jakarta-watchdog-4.0/src/tools/org/apache/jspxml/jsp2XML.java
  
  Index: jsp2XML.java
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/tools/org/apache/jspxml/jsp2XML.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- jsp2XML.java	2000/11/30 01:20:31	1.3
  +++ jsp2XML.java	2000/11/30 23:57:44	1.4
  @@ -208,13 +208,15 @@
          prefix=st.nextToken();
   
     }
  -//update XML Name Space
  -xml_ns+="xmlns:" + prefix +"=" ;
  -xml_ns+="\"" + uri +"\"" + new_line  ;
  -//put the prefix in the hashtable
  +//put the prefix in the hashtable if it doesn't exist
  +//this will be used to update the xml Namespace
   
  -tag_prefix.put(prefix , prefix);
  -
  + if(!tag_prefix.containsKey(prefix) )
  + {
  +  tag_prefix.put(prefix , prefix);
  +//add to the xml NameSpace
  +  xml_ns+="xmlns:" +prefix +"=\"" + uri + "\"" + new_line;
  + }
   
   //update xml output
   out_file += "uri=\"" + uri + "\"" + " " ;
  @@ -521,7 +523,6 @@
   //The final file is
   //xml_prolog + xml_ns + jsp_root_tag +xml+ jsp_end_tag
   
  -xml_ns=xml_ns.trim() ;
   xml_ns+=">" + new_line ; //close the XML Name Space
   output_xml=xml_prolog+ author_comments + jsp_root_tag +xml_ns+ output_xml + jsp_end_tag
;
   return output_xml;
  @@ -536,7 +537,6 @@
   //The final file is
   //xml_prolog + xml_ns + jsp_root_tag +xml+ jsp_end_tag
   
  -xml_ns=xml_ns.trim() ;
   xml_ns+=">" + new_line ; //close the XML Name Space
   output_xml=xml_prolog+ author_comments + jsp_root_tag +xml_ns+ output_xml + jsp_end_tag
;
   //write it to the file
  
  
  

Mime
View raw message