axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r375758 - /webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/tracer/Sender.java
Date Tue, 07 Feb 2006 22:40:14 GMT
Author: dims
Date: Tue Feb  7 14:40:12 2006
New Revision: 375758

URL: http://svn.apache.org/viewcvs?rev=375758&view=rev
Log:
cleanup commented code

Modified:
    webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/tracer/Sender.java

Modified: webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/tracer/Sender.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/tracer/Sender.java?rev=375758&r1=375757&r2=375758&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/tracer/Sender.java
(original)
+++ webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/tracer/Sender.java
Tue Feb  7 14:40:12 2006
@@ -196,8 +196,6 @@
         }
     }
     
-    //String xslt = "<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">\n"
+ "  <!-- Mark A. Ziesemer, www.ziesemer.com, 9-11-2005 -->\n" + "  \n" + "  <xsl:param
name=\"indent\" select=\"'&#x9;'\"/>\n" + "  <xsl:param name=\"newline\" select=\"'&#xA;'\"/>\n"
+ " \n" + "  <xsl:template match=\"node()\">\n" + "    <xsl:param name=\"indent-sum\"/>\n"
+ "    <!-- Indent begin tag. -->\n" + "    <xsl:value-of select=\"$newline\"/>\n"
+ "    <xsl:value-of select=\"$indent-sum\"/>\n" + "    <xsl:copy>\n" + "    
 <xsl:copy-of select=\"@*\"/>\n" + "      <!-- This if allows for self-closing tags.
-->\n" + "      <xsl:if test=\"count(node())\">\n" + "        <xsl:apply-templates>\n"
+ "          <xsl:with-param name=\"indent-sum\" \n" + "            select=\"concat($indent,
$indent-sum)\"/>\n" + "        </xsl:apply-templates>\n" + "        <xsl:if test=\"count(node())
> count(text())\">\n" + "          <!-- Indent end tag. -->\n" + "          <xsl:v
 alue-of select=\"$newline\"/>\n" + "          <xsl:value-of select=\"$indent-sum\"/>\n"
+ "        </xsl:if>\n" + "      </xsl:if>\n" + "    </xsl:copy>\n" + "
 </xsl:template>\n" + "  <xsl:template match=\"text()[normalize-space(.)=''] | comment()[normalize-space(.)='']\"/>\n"
+ "  <xsl:template match=\"text()\">\n" + "    <xsl:value-of select=\"normalize-space(.)\"/>\n"
+ "  </xsl:template>\n" + "</xsl:stylesheet>";
-    
     public String prettyXML(String input) throws Exception {
         TransformerFactory transformerFactory = TransformerFactory.newInstance();
         try {transformerFactory.setAttribute("indent-number", new Integer(2)); } catch (Exception
e){}



Mime
View raw message