jakarta-watchdog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pier...@locus.apache.org
Subject cvs commit: jakarta-watchdog-4.0/src/tools/org/apache/jspxml jsp2XML.java
Date Wed, 13 Dec 2000 18:23:48 GMT
pierred     00/12/13 10:23:47

  Modified:    src/tools/org/apache/jspxml jsp2XML.java
  Log:
  Added proper conversion for <jsp:cdata>.
  
  Revision  Changes    Path
  1.5       +4 -4      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.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- jsp2XML.java	2000/11/30 23:57:44	1.4
  +++ jsp2XML.java	2000/12/13 18:23:44	1.5
  @@ -251,14 +251,14 @@
   
   if( cdata_closed )
   {
  -xml+=new_line+ "<![CDATA[ " + new_line ;
  +xml+=new_line+ "<jsp:cdata><![CDATA[ " + new_line ;
   cdata_closed=false;
   }
   
    if(element_index!=-1 && jsp_element_first) //JSP element was found before action
    {
    xml+=jsp.substring(last_index , element_index);
  - xml+=new_line + "]]>" + new_line ; //end of CDATA section
  + xml+=new_line + "]]></jsp:cdata>" + new_line ; //end of CDATA section
    cdata_closed=true;
   
    char jsp_char = jsp.charAt(element_index+2);
  @@ -377,7 +377,7 @@
   
            if(tag_level==0)
            {
  -	 xml+=new_line + "]]>"+new_line ; //end of CDATA section
  +	 xml+=new_line + "]]></jsp:cdata>"+new_line ; //end of CDATA section
            }
   
            tag_level++;
  @@ -415,7 +415,7 @@
   //Remaining part of the string
        xml+=jsp.substring(last_index);
   //close the CDATA section
  -     xml+=new_line + "]]>" + new_line ;
  +     xml+=new_line + "]]></jsp:cdata>" + new_line ;
    
   return xml;
   
  
  
  

Mime
View raw message