[mashup-dev] svn commit r8613 - trunk/mashup/java/modules/www/xslt

svn at wso2.org svn at wso2.org
Fri Oct 5 05:31:56 PDT 2007


Author: keith
Date: Fri Oct  5 05:31:52 2007
New Revision: 8613

Modified:
   trunk/mashup/java/modules/www/xslt/MashupEditor.xsl
   trunk/mashup/java/modules/www/xslt/MashupServiceList.xsl
Log:
Reverting change



Modified: trunk/mashup/java/modules/www/xslt/MashupEditor.xsl
==============================================================================
--- trunk/mashup/java/modules/www/xslt/MashupEditor.xsl	(original)
+++ trunk/mashup/java/modules/www/xslt/MashupEditor.xsl	Fri Oct  5 05:31:52 2007
@@ -1,18 +1,18 @@
 <!--
-Copyright 2007 WSO2, Inc. (http://wso2.com)
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
--->
+  ~ Copyright 2007 WSO2, Inc. (http://wso2.com)
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
 
 <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns="http://servicemetadatalister.coreservices.mashup.wso2.org/xsd">
 
@@ -21,41 +21,30 @@
         <xsl:variable name="serviceName">
             <xsl:value-of select="ns:serviceName"/>
         </xsl:variable>
-
-        <div>
-            <strong>
-                <xsl:value-of select="ns:serviceName"/>
-            </strong>
-            <div class="editable" title="Click here to edit documentation">
-                <xsl:attribute name="id">service_doc/
-                    <xsl:value-of select="$serviceName"/>
-                    /none
-                </xsl:attribute>
-                <xsl:value-of select="ns:serviceDocumentation"/>
-            </div>
-        </div>
-        <xsl:for-each select="ns:serviceOperations">
-
-            <xsl:variable name="operationName">
-                <xsl:value-of select="ns:operationName"/>
-            </xsl:variable>
-
-            <hr align="center" size="1" class="line"/>
+        
             <div>
-                <strong>
-                    <xsl:value-of select="ns:operationName"/>
-                </strong>
+                <strong><xsl:value-of select="ns:serviceName"/></strong>
                 <div class="editable" title="Click here to edit documentation">
-                    <xsl:attribute name="id">service_operation_doc/
-                        <xsl:value-of select="$serviceName"/>
-                        /
-                        <xsl:value-of select="$operationName"/>
-                    </xsl:attribute>
-                    <xsl:value-of select="ns:documentation"/>
+                    <xsl:attribute name="id">service_doc/<xsl:value-of select="$serviceName"/>/none</xsl:attribute>
+                    <xsl:value-of select="ns:serviceDocumentation"/>
                 </div>
-                <!--<input type="checkbox" name="checkbox" value="status" disabled="true"> </input>Enable this operation-->
             </div>
-        </xsl:for-each>
+            <xsl:for-each select="ns:serviceOperations">
+
+                <xsl:variable name="operationName">
+                    <xsl:value-of select="ns:operationName"/>
+                </xsl:variable>
+
+                <hr align="center" size="1" class="line"/>
+                <div>
+                    <strong><xsl:value-of select="ns:operationName"/></strong>
+                    <div class="editable" title="Click here to edit documentation">
+                        <xsl:attribute name="id">service_operation_doc/<xsl:value-of select="$serviceName"/>/<xsl:value-of select="$operationName"/></xsl:attribute>
+                        <xsl:value-of select="ns:documentation"/>
+                    </div>
+                    <!--<input type="checkbox" name="checkbox" value="status" disabled="true"> </input>Enable this operation-->
+                </div>
+            </xsl:for-each>
 
     </xsl:template>
 

Modified: trunk/mashup/java/modules/www/xslt/MashupServiceList.xsl
==============================================================================
--- trunk/mashup/java/modules/www/xslt/MashupServiceList.xsl	(original)
+++ trunk/mashup/java/modules/www/xslt/MashupServiceList.xsl	Fri Oct  5 05:31:52 2007
@@ -1,18 +1,18 @@
 <!--
-Copyright 2007 WSO2, Inc. (http://wso2.com)
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
--->
+  ~ Copyright 2007 WSO2, Inc. (http://wso2.com)
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
 
 <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
@@ -29,265 +29,255 @@
         </xsl:variable>
 
 
-        <!-- Top banner started -->
-        <xsl:element name="div">
-            <xsl:attribute name="id">
-                <xsl:value-of select="$serviceName"/>
-                _topBanner
-            </xsl:attribute>
-
-            <xsl:if test="$active='true'">
-                <div class="w_top">
-                    <div class="w_top_left">
-                        <img src="images/w_small_top_left.gif"/>
-                    </div>
-                    <div class="w_top_title">
-                        <xsl:value-of select="$serviceName"/>
-                    </div>
-                    <div class="w_top_right_panel">
-                        <div class="w_top_right">
-                            <img src="images/w_top_right.gif"/>
+            <!-- Top banner started -->
+            <xsl:element name="div">
+            <xsl:attribute name="id"><xsl:value-of select="$serviceName"/>_topBanner</xsl:attribute>
+
+                <xsl:if test="$active='true'">
+                    <div class="w_top">
+                        <div class="w_top_left">
+                            <img src="images/w_small_top_left.gif"/>
                         </div>
-                    </div>
-                </div>
-            </xsl:if>
+                        <div class="w_top_title">
+                            <xsl:value-of select="$serviceName"/>
+                        </div>
+                        <div class="w_top_right_panel">
+                            <div class="w_top_right">
+                                <img src="images/w_top_right.gif"/>
+                            </div>
+                        </div>
+                     </div>
+                 </xsl:if>
 
-            <xsl:if test="$active='false'">
-                <div class="w_stopped_top">
-                    <div class="w_stopped_top_left">
-                        <img src="images/w_small_stopped_top_left.gif"/>
-                    </div>
-                    <div class="w_stopped_top_title">
-                        <xsl:value-of select="$serviceName"/>
-                    </div>
-                    <div class="w_stopped_top_right_panel ">
-                        <div class="w_top_right">
-                            <img src="images/w_stopped_top_right.gif"/>
+                <xsl:if test="$active='false'">
+                    <div class="w_stopped_top">
+                        <div class="w_stopped_top_left">
+                            <img src="images/w_small_stopped_top_left.gif"/>
                         </div>
-                    </div>
+                        <div class="w_stopped_top_title">
+                            <xsl:value-of select="$serviceName"/>
+                        </div>
+                        <div class="w_stopped_top_right_panel ">
+                            <div class="w_top_right">
+                                <img src="images/w_stopped_top_right.gif"/>
+                            </div>
+                        </div>
+                     </div>
+                 </xsl:if>
+                
+            </xsl:element>
+            <!-- Top banner stopped -->
+
+          <!-- Button bar started -->
+          <xsl:element name="div">
+          <xsl:attribute name="id"><xsl:value-of select="$serviceName"/>_buttonBar</xsl:attribute>
+
+           <xsl:if test="$active='true'">
+            <div class="w_top_b_panel">
+                <div class="w_top_b_panel_left">
+                    <img src="images/w_small_top_b_panel_left.gif"/>
                 </div>
-            </xsl:if>
-
-        </xsl:element>
-        <!-- Top banner stopped -->
-
-        <!-- Button bar started -->
-        <xsl:element name="div">
-            <xsl:attribute name="id">
-                <xsl:value-of select="$serviceName"/>
-                _buttonBar
-            </xsl:attribute>
-
-            <xsl:if test="$active='true'">
-                <div class="w_top_b_panel">
-                    <div class="w_top_b_panel_left">
-                        <img src="images/w_small_top_b_panel_left.gif"/>
-                    </div>
-                    <div class="w_top_b_panel_title">
+                <div class="w_top_b_panel_title">
                         <div style="dispaly:inline; float:left; color:green">Service started</div>
-                    </div>
-                    <div class="w_top_b_button_panel">
-                        <div class="w_top_b_buttons">
-                            <ul>
-                                <li>
-                                    <xsl:choose>
-                                        <xsl:when test="$serviceType='MashupJSService'">
-                                            <xsl:choose>
-                                                <xsl:when test="$active='true'">
-                                                    <xsl:element name="img">
-                                                        <xsl:attribute name="src">images/w_share.gif</xsl:attribute>
-                                                        <xsl:attribute name="onclick">javascript:WSO2.MashupUtils.showMashupSharingDialog('<xsl:value-of select="$serviceName"/>');
-                                                        </xsl:attribute>
-                                                        <xsl:attribute name="style">cursor:pointer;</xsl:attribute>
-                                                        <xsl:attribute name="title">Share Service</xsl:attribute>
-                                                    </xsl:element>
-                                                </xsl:when>
-                                                <xsl:otherwise>
-                                                    <xsl:element name="img">
-                                                        <xsl:attribute name="src">images/w_stopped_share_disabled.gif</xsl:attribute>
-                                                        <xsl:attribute name="title">Share Service (Disabled for stopped services)
-                                                        </xsl:attribute>
-                                                    </xsl:element>
-                                                </xsl:otherwise>
-                                            </xsl:choose>
-                                        </xsl:when>
-                                        <xsl:otherwise>
-                                            <xsl:element name="img">
-                                                <xsl:attribute name="src">images/w_share_disabled.gif</xsl:attribute>
-                                                <xsl:attribute name="title">Share Service (Disabled for non Js services)
-                                                </xsl:attribute>
-                                            </xsl:element>
-                                        </xsl:otherwise>
-                                    </xsl:choose>
-
-
-                                </li>
-                                <li>
-                                    <xsl:choose>
-                                        <xsl:when test="$serviceType='MashupJSService'">
-                                            <xsl:choose>
-                                                <xsl:when test="$active='true'">
-                                                    <xsl:element name="img">
-                                                        <xsl:attribute name="src">images/w_edit.gif</xsl:attribute>
-                                                        <xsl:attribute name="onclick">javascript:wso2.mashup.services.getServiceDataForEditor('<xsl:value-of select="$serviceName"/>', wso2.mashup.populateServiceEditor);
-                                                        </xsl:attribute>
-                                                        <xsl:attribute name="style">cursor:pointer;</xsl:attribute>
-                                                        <xsl:attribute name="title">Edit Service</xsl:attribute>
-                                                    </xsl:element>
-                                                </xsl:when>
-                                                <xsl:otherwise>
-                                                    <xsl:element name="img">
-                                                        <xsl:attribute name="src">images/w_stopped_edit_disabled.gif</xsl:attribute>
-                                                        <xsl:attribute name="title">Edit Service (Disabled for stopped services)
-                                                        </xsl:attribute>
-                                                    </xsl:element>
-                                                </xsl:otherwise>
-                                            </xsl:choose>
-                                        </xsl:when>
-                                        <xsl:otherwise>
-                                            <xsl:element name="img">
-                                                <xsl:attribute name="src">images/w_edit_disabled.gif</xsl:attribute>
-                                                <xsl:attribute name="title">Edit Service (Disabled for non Js services)
-                                                </xsl:attribute>
-                                            </xsl:element>
-                                        </xsl:otherwise>
-                                    </xsl:choose>
-
-
-                                </li>
-                                <li>
-                                    <xsl:element name="img">
-                                        <xsl:attribute name="src">images/w_start.gif</xsl:attribute>
-                                        <xsl:attribute name="title">Start Service</xsl:attribute>
-                                    </xsl:element>
-                                </li>
-                                <li>
-
-                                    <xsl:element name="img">
-                                        <xsl:attribute name="src">images/w_stop.gif</xsl:attribute>
-                                        <xsl:attribute name="title">Stop Service</xsl:attribute>
-                                        <xsl:attribute name="style">cursor:pointer;</xsl:attribute>
-                                        <xsl:attribute name="onclick">javascript:wso2.mashup.MashupListModel.handleServiceStartStop('<xsl:value-of select="$serviceName"/>', false)
-                                        </xsl:attribute>
-                                    </xsl:element>
+                </div>
+                <div class="w_top_b_button_panel">
+                    <div class="w_top_b_buttons">
+                        <ul>
+                            <li>
+                                <xsl:choose>
+                                    <xsl:when test="$serviceType='MashupJSService'">
+                                        <xsl:choose>
+                                            <xsl:when test="$active='true'">
+                                                <xsl:element name="img">
+                                                    <xsl:attribute name="src">images/w_share.gif</xsl:attribute>
+                                                    <xsl:attribute name="onclick">javascript:WSO2.MashupUtils.showMashupSharingDialog('<xsl:value-of select="$serviceName"/>');
+                                                    </xsl:attribute>
+                                                    <xsl:attribute name="style">cursor:pointer;</xsl:attribute>
+                                                    <xsl:attribute name="title">Share Service</xsl:attribute>
+                                                </xsl:element>
+                                            </xsl:when>
+                                            <xsl:otherwise>
+                                                <xsl:element name="img">
+                                                    <xsl:attribute name="src">images/w_stopped_share_disabled.gif</xsl:attribute>
+                                                    <xsl:attribute name="title">Share Service (Disabled for stopped services)
+                                                    </xsl:attribute>
+                                                </xsl:element>
+                                            </xsl:otherwise>
+                                        </xsl:choose>
+                                    </xsl:when>
+                                    <xsl:otherwise>
+                                        <xsl:element name="img">
+                                              <xsl:attribute name="src">images/w_share_disabled.gif</xsl:attribute>
+                                              <xsl:attribute name="title">Share Service (Disabled for non Js services)
+                                            </xsl:attribute>
+                                        </xsl:element>
+                                    </xsl:otherwise>
+                                </xsl:choose>
+
+
+                            </li>
+                            <li>
+                                <xsl:choose>
+                                    <xsl:when test="$serviceType='MashupJSService'">
+                                        <xsl:choose>
+                                            <xsl:when test="$active='true'">
+                                                <xsl:element name="img">
+                                                    <xsl:attribute name="src">images/w_edit.gif</xsl:attribute>
+                                                    <xsl:attribute name="onclick">javascript:wso2.mashup.services.getServiceDataForEditor('<xsl:value-of select="$serviceName"/>', wso2.mashup.populateServiceEditor);</xsl:attribute>
+                                                    <xsl:attribute name="style">cursor:pointer;</xsl:attribute>
+                                                    <xsl:attribute name="title">Edit Service</xsl:attribute>
+                                                </xsl:element>
+                                            </xsl:when>
+                                            <xsl:otherwise>
+                                                <xsl:element name="img">
+                                                    <xsl:attribute name="src">images/w_stopped_edit_disabled.gif</xsl:attribute>
+                                                    <xsl:attribute name="title">Edit Service (Disabled for stopped services)
+                                                    </xsl:attribute>
+                                                </xsl:element>
+                                            </xsl:otherwise>
+                                        </xsl:choose>
+                                    </xsl:when>
+                                    <xsl:otherwise>
+                                        <xsl:element name="img">
+                                            <xsl:attribute name="src">images/w_edit_disabled.gif</xsl:attribute>
+                                            <xsl:attribute name="title">Edit Service (Disabled for non Js services)
+                                            </xsl:attribute>
+                                        </xsl:element>
+                                    </xsl:otherwise>
+                                </xsl:choose>
+
+
+                            </li>
+                            <li>
+                               <xsl:element name="img">
+                                    <xsl:attribute name="src">images/w_start.gif</xsl:attribute>
+                                    <xsl:attribute name="title">Start Service</xsl:attribute>
+                              </xsl:element>
+                            </li>
+                            <li>
+
+                                <xsl:element name="img">
+                                    <xsl:attribute name="src">images/w_stop.gif</xsl:attribute>
+                                    <xsl:attribute name="title">Stop Service</xsl:attribute>
+                                    <xsl:attribute name="style">cursor:pointer;</xsl:attribute>
+                                    <xsl:attribute name="onclick">javascript:wso2.mashup.MashupListModel.handleServiceStartStop('<xsl:value-of select="$serviceName"/>', false)</xsl:attribute>
+                                </xsl:element>
 
 
-                                </li>
-                            </ul>
-                        </div>
-                        <div class="w_top_b_panel_left_right">
-                            <img src="images/w_top_b_panel_right.gif"/>
-                        </div>
+                            </li>
+                        </ul>
                     </div>
-                </div>
-            </xsl:if>
-
-            <xsl:if test="$active='false'">
-                <div class="w_stopped_top_b_panel">
-                    <div class="w_stopped_top_b_panel_left">
-                        <img src="images/w_small_stopped_top_b_panel.gif"/>
+                    <div class="w_top_b_panel_left_right">
+                        <img src="images/w_top_b_panel_right.gif"/>
                     </div>
-                    <div class="w_top_b_panel_title">
+                </div>
+            </div>
+           </xsl:if>
+            
+           <xsl:if test="$active='false'">
+            <div class="w_stopped_top_b_panel">
+                <div class="w_stopped_top_b_panel_left">
+                    <img src="images/w_small_stopped_top_b_panel.gif"/>
+                </div>
+                <div class="w_top_b_panel_title">
                         <div style="dispaly:inline; float:left; color:red">Service stopped</div>
+                 </div>
+                <div class="w_top_b_button_panel">
+                    <div class="w_top_b_buttons">
+                        <ul>
+                            <li>
+                                <xsl:choose>
+                                    <xsl:when test="$serviceType='MashupJSService'">
+                                        <xsl:choose>
+                                            <xsl:when test="$active='true'">
+                                                <xsl:element name="img">
+                                                    <xsl:attribute name="src">images/w_share.gif</xsl:attribute>
+                                                    <xsl:attribute name="onclick">javascript:WSO2.MashupUtils.showMashupSharingDialog('<xsl:value-of select="$serviceName"/>');
+                                                    </xsl:attribute>
+                                                    <xsl:attribute name="style">cursor:pointer;</xsl:attribute>
+                                                    <xsl:attribute name="title">Share Service</xsl:attribute>
+                                                </xsl:element>
+                                            </xsl:when>
+                                            <xsl:otherwise>
+                                                <xsl:element name="img">
+                                                    <xsl:attribute name="src">images/w_stopped_share_disabled.gif</xsl:attribute>
+                                                    <xsl:attribute name="title">Share Service (Disabled for stopped services)
+                                                    </xsl:attribute>
+                                                </xsl:element>
+                                            </xsl:otherwise>
+                                        </xsl:choose>
+                                    </xsl:when>                                                              
+                                    <xsl:otherwise>
+                                        <xsl:element name="img">
+                                            <xsl:attribute name="src">images/w_stopped_share_disabled.gif</xsl:attribute>
+                                            <xsl:attribute name="title">Share Service (Disabled for non Js services)
+                                            </xsl:attribute>
+                                        </xsl:element>
+                                    </xsl:otherwise>
+                                </xsl:choose>
+
+
+                            </li>
+                            <li>
+                                <xsl:choose>
+                                    <xsl:when test="$serviceType='MashupJSService'">
+                                        <xsl:choose>
+                                            <xsl:when test="$active='true'">
+                                                <xsl:element name="img">
+                                                    <xsl:attribute name="src">images/w_edit.gif</xsl:attribute>
+                                                    <xsl:attribute name="onclick">javascript:wso2.mashup.services.getServiceDataForEditor('<xsl:value-of select="$serviceName"/>', wso2.mashup.populateServiceEditor);</xsl:attribute>
+                                                    <xsl:attribute name="style">cursor:pointer;</xsl:attribute>
+                                                    <xsl:attribute name="title">Edit Service</xsl:attribute>
+                                                </xsl:element>
+                                            </xsl:when>
+                                            <xsl:otherwise>
+                                                <xsl:element name="img">
+                                                    <xsl:attribute name="src">images/w_stopped_edit_disabled.gif</xsl:attribute>
+                                                    <xsl:attribute name="title">Edit Service (Disabled for stopped services)
+                                                    </xsl:attribute>
+                                                </xsl:element>
+                                            </xsl:otherwise>
+                                        </xsl:choose>
+                                    </xsl:when>
+                                    <xsl:otherwise>
+                                        <xsl:element name="img">
+                                           <xsl:attribute name="src">images/w_stopped_edit_disabled.gif</xsl:attribute>
+                                            <xsl:attribute name="title">Edit Service (Disabled for non Js services)
+                                            </xsl:attribute>
+                                        </xsl:element>
+                                    </xsl:otherwise>
+                                </xsl:choose>
+
+
+                            </li>
+                            <li>
+                               <xsl:element name="img">
+                                    <xsl:attribute name="src">images/w_stopped_start.gif</xsl:attribute>
+                                    <xsl:attribute name="title">Start Service</xsl:attribute>
+                                    <xsl:attribute name="style">cursor:pointer;</xsl:attribute>
+                                    <xsl:attribute name="onclick">javascript:wso2.mashup.MashupListModel.handleServiceStartStop('<xsl:value-of select="$serviceName"/>', true); </xsl:attribute>
+
+                              </xsl:element>
+                            </li>
+                            <li>
+                                <xsl:element name="img">
+                                    <xsl:attribute name="src">images/w_stopped_stop.gif</xsl:attribute>
+                                    <xsl:attribute name="title">Stop Service</xsl:attribute>
+
+                                </xsl:element>
+                            </li>
+                        </ul>
                     </div>
-                    <div class="w_top_b_button_panel">
-                        <div class="w_top_b_buttons">
-                            <ul>
-                                <li>
-                                    <xsl:choose>
-                                        <xsl:when test="$serviceType='MashupJSService'">
-                                            <xsl:choose>
-                                                <xsl:when test="$active='true'">
-                                                    <xsl:element name="img">
-                                                        <xsl:attribute name="src">images/w_share.gif</xsl:attribute>
-                                                        <xsl:attribute name="onclick">javascript:WSO2.MashupUtils.showMashupSharingDialog('<xsl:value-of select="$serviceName"/>');
-                                                        </xsl:attribute>
-                                                        <xsl:attribute name="style">cursor:pointer;</xsl:attribute>
-                                                        <xsl:attribute name="title">Share Service</xsl:attribute>
-                                                    </xsl:element>
-                                                </xsl:when>
-                                                <xsl:otherwise>
-                                                    <xsl:element name="img">
-                                                        <xsl:attribute name="src">images/w_stopped_share_disabled.gif</xsl:attribute>
-                                                        <xsl:attribute name="title">Share Service (Disabled for stopped services)
-                                                        </xsl:attribute>
-                                                    </xsl:element>
-                                                </xsl:otherwise>
-                                            </xsl:choose>
-                                        </xsl:when>
-                                        <xsl:otherwise>
-                                            <xsl:element name="img">
-                                                <xsl:attribute name="src">images/w_stopped_share_disabled.gif</xsl:attribute>
-                                                <xsl:attribute name="title">Share Service (Disabled for non Js services)
-                                                </xsl:attribute>
-                                            </xsl:element>
-                                        </xsl:otherwise>
-                                    </xsl:choose>
-
-
-                                </li>
-                                <li>
-                                    <xsl:choose>
-                                        <xsl:when test="$serviceType='MashupJSService'">
-                                            <xsl:choose>
-                                                <xsl:when test="$active='true'">
-                                                    <xsl:element name="img">
-                                                        <xsl:attribute name="src">images/w_edit.gif</xsl:attribute>
-                                                        <xsl:attribute name="onclick">javascript:wso2.mashup.services.getServiceDataForEditor('<xsl:value-of select="$serviceName"/>', wso2.mashup.populateServiceEditor);
-                                                        </xsl:attribute>
-                                                        <xsl:attribute name="style">cursor:pointer;</xsl:attribute>
-                                                        <xsl:attribute name="title">Edit Service</xsl:attribute>
-                                                    </xsl:element>
-                                                </xsl:when>
-                                                <xsl:otherwise>
-                                                    <xsl:element name="img">
-                                                        <xsl:attribute name="src">images/w_stopped_edit_disabled.gif</xsl:attribute>
-                                                        <xsl:attribute name="title">Edit Service (Disabled for stopped services)
-                                                        </xsl:attribute>
-                                                    </xsl:element>
-                                                </xsl:otherwise>
-                                            </xsl:choose>
-                                        </xsl:when>
-                                        <xsl:otherwise>
-                                            <xsl:element name="img">
-                                                <xsl:attribute name="src">images/w_stopped_edit_disabled.gif</xsl:attribute>
-                                                <xsl:attribute name="title">Edit Service (Disabled for non Js services)
-                                                </xsl:attribute>
-                                            </xsl:element>
-                                        </xsl:otherwise>
-                                    </xsl:choose>
-
-
-                                </li>
-                                <li>
-                                    <xsl:element name="img">
-                                        <xsl:attribute name="src">images/w_stopped_start.gif</xsl:attribute>
-                                        <xsl:attribute name="title">Start Service</xsl:attribute>
-                                        <xsl:attribute name="style">cursor:pointer;</xsl:attribute>
-                                        <xsl:attribute name="onclick">javascript:wso2.mashup.MashupListModel.handleServiceStartStop('<xsl:value-of select="$serviceName"/>', true);
-                                        </xsl:attribute>
-
-                                    </xsl:element>
-                                </li>
-                                <li>
-                                    <xsl:element name="img">
-                                        <xsl:attribute name="src">images/w_stopped_stop.gif</xsl:attribute>
-                                        <xsl:attribute name="title">Stop Service</xsl:attribute>
-
-                                    </xsl:element>
-                                </li>
-                            </ul>
-                        </div>
-                        <div class="w_top_b_panel_left_right">
-                            <img src="images/w_stopped_top_b_panel_right.gif"/>
-                        </div>
+                    <div class="w_top_b_panel_left_right">
+                        <img src="images/w_stopped_top_b_panel_right.gif"/>
                     </div>
                 </div>
-            </xsl:if>
+            </div>
+           </xsl:if>
         </xsl:element>
 
         <!-- Button bar stopped -->
-
+        
     </xsl:template>
 
 </xsl:transform>




More information about the Mashup-dev mailing list