blob: 377ec2b021bf1bfde23485c86b071163a058b2ba [file] [log] [blame]
Stephane Frenot5d96ade2006-07-20 13:04:47 +00001<?xml version="1.0"?>
2<!--
Stephane Frenotcd27cc62006-10-11 08:25:06 +00003/*
4* Licensed to the Apache Software Foundation (ASF) under one
5* or more contributor license agreements. See the NOTICE file
6* distributed with this work for additional information
7* regarding copyright ownership. The ASF licenses this file
8* to you under the Apache License, Version 2.0 (the
9* "License"); you may not use this file except in compliance
10* with the License. You may obtain a copy of the License at
11*
12* http://www.apache.org/licenses/LICENSE-2.0
13*
14* Unless required by applicable law or agreed to in writing,
15* software distributed under the License is distributed on an
16* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17* KIND, either express or implied. See the License for the
18* specific language governing permissions and limitations
19* under the License.
20*/
21-->
Stephane Frenot5d96ade2006-07-20 13:04:47 +000022
23<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
24 <xsl:output method="html" indent="yes" encoding="UTF-8"/>
25
26 <!-- Overall parameters -->
27 <xsl:param name="html.stylesheet">stylesheet.css</xsl:param>
28 <xsl:param name="html.stylesheet.type">text/css</xsl:param>
29 <xsl:param name="head.title">invoke.title</xsl:param>
30
31 <!-- Request parameters -->
32 <xsl:param name="request.objectname"/>
33 <xsl:param name="request.method"/>
34
35 <xsl:include href="common.xsl"/>
36 <xsl:include href="mbean_attributes.xsl"/>
37
38 <!-- Operation invoke -->
39 <xsl:template name="operation" >
40 <xsl:for-each select="Operation">
41 <table width="100%" cellpadding="0" cellspacing="0" border="0">
42 <tr>
43 <td width="100%" class="page_title">
44 <xsl:call-template name="str">
45 <xsl:with-param name="id">invoke.operation.title</xsl:with-param>
46 <xsl:with-param name="p0"><xsl:value-of select="$request.method"/></xsl:with-param>
47 <xsl:with-param name="p1"><xsl:value-of select="$request.objectname"/></xsl:with-param>
48 </xsl:call-template>
49 </td>
50 </tr>
51 <tr>
52 <td class="clearline">
53 <xsl:if test="@result='success'">
54 <xsl:call-template name="str">
55 <xsl:with-param name="id">invoke.operation.success</xsl:with-param>
56 </xsl:call-template>
57 <br/>
58 <xsl:if test="not (@return='')">
59 <xsl:call-template name="str">
60 <xsl:with-param name="id">invoke.operation.success.result</xsl:with-param>
61 <xsl:with-param name="p0">
62 <xsl:call-template name="renderobject">
63 <xsl:with-param name="objectclass" select="@returnclass"/>
64 <xsl:with-param name="objectvalue" select="@return"/>
65 </xsl:call-template>
66 </xsl:with-param>
67 </xsl:call-template>
68 </xsl:if>
69 <xsl:if test="@return=''">
70 <xsl:call-template name="str">
71 <xsl:with-param name="id">invoke.operation.success.noresult</xsl:with-param>
72 </xsl:call-template>
73 </xsl:if>
74 </xsl:if>
75 <xsl:if test="@result='error'">
76 <xsl:call-template name="str">
77 <xsl:with-param name="id">invoke.operation.success.error</xsl:with-param>
78 <xsl:with-param name="p0"><xsl:value-of select="@errorMsg"/></xsl:with-param>
79 </xsl:call-template>
80 </xsl:if>
81 </td>
82 </tr>
83 <xsl:call-template name="mbeanview">
84 <xsl:with-param name="objectname" select="$request.objectname"/>
85 </xsl:call-template>
86 </table>
87 </xsl:for-each>
88 </xsl:template>
89
90 <!-- Main template -->
91 <xsl:template match="MBeanOperation" name="main">
92 <html>
93 <xsl:call-template name="head"/>
94 <body>
95 <xsl:call-template name="toprow"/>
96 <xsl:call-template name="tabs">
97 <xsl:with-param name="selection">mbean</xsl:with-param>
98 </xsl:call-template>
99 <xsl:call-template name="operation"/>
100 <xsl:call-template name="bottom"/>
101 </body>
102 </html>
103 </xsl:template>
104</xsl:stylesheet>
105