Stephane Frenot | 5d96ade | 2006-07-20 13:04:47 +0000 | [diff] [blame] | 1 | <?xml version="1.0"?> |
| 2 | <!-- |
Stephane Frenot | cd27cc6 | 2006-10-11 08:25:06 +0000 | [diff] [blame^] | 3 | /* |
| 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 Frenot | 5d96ade | 2006-07-20 13:04:47 +0000 | [diff] [blame] | 22 | |
| 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 | <xsl:param name="html.stylesheet">stylesheet.css</xsl:param> |
| 27 | <xsl:param name="html.stylesheet.type">text/css</xsl:param> |
| 28 | <xsl:param name="head.title">setattribute.title</xsl:param> |
| 29 | <xsl:include href="common.xsl"/> |
| 30 | |
| 31 | <!-- Request parameters --> |
| 32 | <xsl:param name="request.objectname"/> |
| 33 | <xsl:param name="request.attribute"/> |
| 34 | <xsl:param name="request.value"/> |
| 35 | |
| 36 | <xsl:template name="operation"> |
| 37 | <xsl:for-each select="Operation"> |
| 38 | <table width="100%" cellpadding="0" cellspacing="0" border="0"> |
| 39 | <xsl:variable name="classtype"> |
| 40 | <xsl:if test="(position() mod 2)=1">darkline</xsl:if> |
| 41 | <xsl:if test="(position() mod 2)=0">clearline</xsl:if> |
| 42 | </xsl:variable> |
| 43 | <tr> |
| 44 | <td width="100%" class="fronttab"> |
| 45 | <xsl:call-template name="str"> |
| 46 | <xsl:with-param name="id">setattribute.operation.title</xsl:with-param> |
| 47 | <xsl:with-param name="p0"><xsl:value-of select="$request.attribute"/></xsl:with-param> |
| 48 | <xsl:with-param name="p1"><xsl:value-of select="$request.objectname"/></xsl:with-param> |
| 49 | </xsl:call-template> |
| 50 | </td> |
| 51 | </tr> |
| 52 | <tr> |
| 53 | <td class="{$classtype}"> |
| 54 | <xsl:if test="@result='success'"> |
| 55 | <xsl:call-template name="str"> |
| 56 | <xsl:with-param name="id">setattribute.operation.success</xsl:with-param> |
| 57 | <xsl:with-param name="p0"><xsl:value-of select="$request.attribute"/></xsl:with-param> |
| 58 | <xsl:with-param name="p1"><xsl:value-of select="$request.value"/></xsl:with-param> |
| 59 | </xsl:call-template> |
| 60 | </xsl:if> |
| 61 | <xsl:if test="@result='error'"> |
| 62 | <xsl:call-template name="str"> |
| 63 | <xsl:with-param name="id">setattribute.operation.error</xsl:with-param> |
| 64 | <xsl:with-param name="p0"><xsl:value-of select="@errorMessage"/></xsl:with-param> |
| 65 | </xsl:call-template> |
| 66 | |
| 67 | </xsl:if> |
| 68 | </td> |
| 69 | </tr> |
| 70 | <xsl:call-template name="mbeanview"> |
| 71 | <xsl:with-param name="objectname" select="$request.objectname"/> |
| 72 | </xsl:call-template> |
| 73 | </table> |
| 74 | </xsl:for-each> |
| 75 | </xsl:template> |
| 76 | |
| 77 | <xsl:template match="MBeanOperation"> |
| 78 | <html> |
| 79 | <xsl:call-template name="head"/> |
| 80 | <body> |
| 81 | <xsl:call-template name="toprow"/> |
| 82 | <xsl:call-template name="tabs"> |
| 83 | <xsl:with-param name="selection">mbean</xsl:with-param> |
| 84 | </xsl:call-template> |
| 85 | <xsl:call-template name="operation"/> |
| 86 | <xsl:call-template name="bottom"/> |
| 87 | </body> |
| 88 | </html> |
| 89 | </xsl:template> |
| 90 | </xsl:stylesheet> |
| 91 | |