cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r1175672 - in /cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser: detailedUsage.xsl usage.xsl
Date Mon, 26 Sep 2011 05:06:46 GMT
Author: ffang
Date: Mon Sep 26 05:06:45 2011
New Revision: 1175672

URL: http://svn.apache.org/viewvc?rev=1175672&view=rev
Log:
[CXF-3824]CLI tool -help should be able to list all switch in toolspec

Modified:
    cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/detailedUsage.xsl
    cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/usage.xsl

Modified: cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/detailedUsage.xsl
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/detailedUsage.xsl?rev=1175672&r1=1175671&r2=1175672&view=diff
==============================================================================
--- cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/detailedUsage.xsl
(original)
+++ cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/detailedUsage.xsl
Mon Sep 26 05:06:45 2011
@@ -53,8 +53,14 @@
 				<xsl:if test="@minOccurs=0">
 					<xsl:text>[ </xsl:text>
 				</xsl:if>
-				<xsl:text>-</xsl:text>
-				<xsl:value-of select="ts:switch"/>
+				<xsl:for-each select="ts:switch">
+	                <xsl:if test="position() > 1">
+	                    <xsl:text>|</xsl:text>
+	                </xsl:if>
+	                <xsl:text>-</xsl:text>
+                    <xsl:value-of select="text()"/>
+                </xsl:for-each>
+	    
 				<xsl:if test="ts:associatedArgument[@placement='afterSpace']">
 					<xsl:text> </xsl:text>
 				</xsl:if>

Modified: cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/usage.xsl
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/usage.xsl?rev=1175672&r1=1175671&r2=1175672&view=diff
==============================================================================
--- cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/usage.xsl
(original)
+++ cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/usage.xsl
Mon Sep 26 05:06:45 2011
@@ -65,8 +65,16 @@ Form </xsl:text>
 	      <xsl:text>[ </xsl:text>
 	    </xsl:if>
 
-	    <xsl:text>-</xsl:text>
-	    <xsl:value-of select="ts:switch"/>
+	   	    
+	    <xsl:for-each select="ts:switch">
+	        <xsl:if test="position() > 1">
+	            <xsl:text>|</xsl:text>
+	        </xsl:if>
+	        <xsl:text>-</xsl:text>
+            <xsl:value-of select="text()"/>
+        </xsl:for-each>
+	    
+	    
 
 	    <xsl:if test="ts:associatedArgument[@placement='afterSpace']">
 	      <xsl:text> </xsl:text>



Mime
View raw message