You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by sf...@apache.org on 2006/07/20 15:04:49 UTC
svn commit: r423924 [1/2] - in
/incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources:
./ mx4j/ mx4j/tools/ mx4j/tools/adaptor/ mx4j/tools/adaptor/http/
mx4j/tools/adaptor/http/xsl/
Author: sfrenot
Date: Thu Jul 20 06:04:47 2006
New Revision: 423924
URL: http://svn.apache.org/viewvc?rev=423924&view=rev
Log: (empty)
Added:
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/about.xsl
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/common.xsl
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/constructors.xsl
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/create.xsl
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/delete.xsl
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/emptymbean.xsl
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/error.xsl
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/favicon.ico (with props)
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/identity.xsl
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/invoke.xsl
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/logo.gif (with props)
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/mbean.xsl
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/mbean_attributes.xsl
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/mlet.xsl
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/monitor.xsl
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/monitor_create.xsl
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/relation.xsl
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/server.xsl
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/serverbydomain.xsl
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/setattribute.xsl
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/setattributes.xsl
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/strings_en.xml
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/stylesheet.css
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/timer.xsl
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/timer_create.xsl
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/viewarray.xsl
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/viewcollection.xsl
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/viewmap.xsl
incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/xalan-ext.xsl
Added: incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/about.xsl
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/about.xsl?rev=423924&view=auto
==============================================================================
--- incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/about.xsl (added)
+++ incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/about.xsl Thu Jul 20 06:04:47 2006
@@ -0,0 +1,115 @@
+<?xml version="1.0"?>
+<!--
+ Copyright (C) MX4J.
+ All rights reserved.
+
+ This software is distributed under the terms of the MX4J License version 1.0.
+ See the terms of the MX4J License in the documentation provided with this software.
+
+ Author: Carlos Quiroz (tibu@users.sourceforge.net)
+ Revision: $Revision: 1.1.1.1 $
+ -->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ <xsl:output method="html" indent="yes" encoding="ISO-8859-1"/>
+ <xsl:include href="common.xsl"/>
+ <xsl:include href="xalan-ext.xsl"/>
+
+ <xsl:param name="html.stylesheet">stylesheet.css</xsl:param>
+ <xsl:param name="html.stylesheet.type">text/css</xsl:param>
+ <xsl:param name="head.title">about.title</xsl:param>
+
+ <!-- Main template -->
+ <xsl:template match="/MBean">
+ <html>
+ <xsl:call-template name="head"/>
+ <body>
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
+ <tr width="100%">
+ <td>
+ <xsl:call-template name="toprow"/>
+ <xsl:call-template name="tabs">
+ <xsl:with-param name="selection">about</xsl:with-param>
+ </xsl:call-template>
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
+ <tr class="about">
+ <td colspan="2">
+ <h1 align="center" class="about">
+ <xsl:variable name="str.url">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">about.main.url</xsl:with-param>
+ </xsl:call-template>
+ </xsl:variable>
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">about.main.title</xsl:with-param>
+ <xsl:with-param name="p0"><a href="{$str.url}">MX4J</a></xsl:with-param>
+ </xsl:call-template>
+ </h1>
+ </td>
+ </tr>
+ <tr class="about">
+ <td colspan="2">
+ <h2 align="center" class="about">
+ <xsl:variable name="str.url">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">about.main.url2</xsl:with-param>
+ </xsl:call-template>
+ </xsl:variable>
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">about.main.line1</xsl:with-param>
+ <xsl:with-param name="p0"><a href="{$str.url}">JMX</a></xsl:with-param>
+ </xsl:call-template>
+ </h2>
+ </td>
+ </tr>
+ <tr class="about">
+ <td>
+ <h3 align="right" class="about">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">about.main.implementation</xsl:with-param>
+ </xsl:call-template>
+ </h3>
+ </td>
+ <td>
+ <h3 align="left" class="about">
+ <xsl:value-of select="./Attribute[@name='ImplementationName']/@value"/>
+ </h3>
+ </td>
+ </tr>
+ <tr class="about">
+ <td>
+ <h3 align="right" class="about">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">about.main.implementationversion</xsl:with-param>
+ </xsl:call-template>
+ </h3>
+ </td>
+ <td>
+ <h3 align="left" class="about">
+ <xsl:value-of select="./Attribute[@name='ImplementationVersion']/@value"/>
+ </h3>
+ </td>
+ </tr>
+ <tr class="about">
+ <td>
+ <h3 align="right" class="about">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">about.main.serverid</xsl:with-param>
+ </xsl:call-template>
+ </h3>
+ </td>
+ <td>
+ <h3 align="left" class="about">
+ <xsl:value-of select="./Attribute[@name='MBeanServerId']/@value"/>
+ </h3>
+ </td>
+ </tr>
+ </table>
+ <xsl:call-template name="bottom"/>
+ </td>
+ </tr>
+ </table>
+ </body>
+ </html>
+ </xsl:template>
+</xsl:stylesheet>
+
Added: incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/common.xsl
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/common.xsl?rev=423924&view=auto
==============================================================================
--- incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/common.xsl (added)
+++ incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/common.xsl Thu Jul 20 06:04:47 2006
@@ -0,0 +1,441 @@
+<?xml version="1.0"?>
+<!--
+ Copyright (C) MX4J.
+ All rights reserved.
+
+ This software is distributed under the terms of the MX4J License version 1.0.
+ See the terms of the MX4J License in the documentation provided with this software.
+
+ Author: Carlos Quiroz (tibu@users.sourceforge.net)
+ Revision: $Revision: 1.1.1.1 $
+ -->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ <!-- Import xalan extensions -->
+ <xsl:import href="xalan-ext.xsl" />
+
+ <!-- Defin string variables -->
+ <xsl:param name="request.locale">en</xsl:param>
+
+ <xsl:variable name="strings" select="document(concat('strings_', $request.locale, '.xml'))" />
+
+ <!-- Common head template -->
+ <xsl:template name="head">
+ <xsl:if test="$head.title">
+ <title>
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">
+ <xsl:value-of select="$head.title" />
+ </xsl:with-param>
+ </xsl:call-template>
+ </title>
+ </xsl:if>
+
+ <xsl:if test="$html.stylesheet">
+ <link rel="stylesheet" href="{$html.stylesheet}"
+ type="{$html.stylesheet.type}" />
+ </xsl:if>
+
+ <meta http-equiv="Expires" content ="0"/>
+ <meta http-equiv="Pragma" content="no-cache"/>
+ <meta http-equiv="Cache-Control" content="no-cache"/>
+ <meta name="generator" content="MX4J HttpAdaptor, JMX, JMX implementation" />
+
+ </xsl:template>
+
+ <!-- Common title template -->
+ <xsl:template name="toprow">
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="darker" colspan="2"/>
+ </tr>
+
+ <tr>
+ <td class="topheading">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">common.title</xsl:with-param>
+ </xsl:call-template>
+ <br/>
+ <div class="subtitle">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">common.subtitle</xsl:with-param>
+ </xsl:call-template>
+ </div>
+ </td>
+
+ <td class="topheading" align="right">
+ <xsl:variable name="str.logo">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">common.logo</xsl:with-param>
+ </xsl:call-template>
+ </xsl:variable>
+ <xsl:variable name="str.logo.gif">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">common.logo.gif</xsl:with-param>
+ </xsl:call-template>
+ </xsl:variable>
+ <xsl:variable name="str.site">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">common.site</xsl:with-param>
+ </xsl:call-template>
+ </xsl:variable>
+ <xsl:variable name="str.logo.width">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">common.logo.width</xsl:with-param>
+ </xsl:call-template>
+ </xsl:variable>
+ <xsl:variable name="str.logo.height">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">common.logo.height</xsl:with-param>
+ </xsl:call-template>
+ </xsl:variable>
+ <a href="http://{$str.site}"><img src="{$str.logo.gif}" width="{$str.logo.width}" height="{$str.logo.height}" border="0" alt="{$str.logo}" />
+ </a>
+ </td>
+ </tr>
+
+ <tr>
+ <td class="darker" colspan="2" />
+ </tr>
+ </table>
+
+ <br />
+ </xsl:template>
+
+ <!-- Common bottom template -->
+ <xsl:template name="bottom">
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="fronttab"> </td>
+ </tr>
+
+ <tr>
+ <td class="darker" />
+ </tr>
+
+ <tr>
+ <td>
+ <div align="center" class="footer">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">common.bottom.banner</xsl:with-param>
+ <xsl:with-param name="p0">
+ <a href="http://mx4j.sourceforge.net">MX4J</a>
+ </xsl:with-param>
+ </xsl:call-template>
+ </div>
+ </td>
+ </tr>
+ </table>
+ </xsl:template>
+
+ <!-- Common tabs template -->
+ <xsl:template name="tabs">
+ <xsl:param name="selection" select="." />
+
+ <xsl:variable name="server.class">
+ <xsl:choose>
+ <xsl:when test="$selection='server'">fronttab</xsl:when>
+ <xsl:otherwise>backtab</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <xsl:variable name="timer.class">
+ <xsl:choose>
+ <xsl:when test="$selection='timer'">fronttab</xsl:when>
+ <xsl:otherwise>backtab</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <xsl:variable name="mbean.class">
+ <xsl:choose>
+ <xsl:when test="$selection='mbean'">fronttab</xsl:when>
+ <xsl:otherwise>backtab</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <xsl:variable name="monitor.class">
+ <xsl:choose>
+ <xsl:when test="$selection='monitor'">fronttab</xsl:when>
+ <xsl:otherwise>backtab</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <xsl:variable name="relation.class">
+ <xsl:choose>
+ <xsl:when test="$selection='relation'">fronttab</xsl:when>
+ <xsl:otherwise>backtab</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <xsl:variable name="mlet.class">
+ <xsl:choose>
+ <xsl:when test="$selection='mlet'">fronttab</xsl:when>
+ <xsl:otherwise>backtab</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <xsl:variable name="about.class">
+ <xsl:choose>
+ <xsl:when test="$selection='about'">fronttab</xsl:when>
+ <xsl:otherwise>backtab</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="{$server.class}">
+ <xsl:if test="not ($selection='server')">
+ <a href="/serverbydomain" class="tabs">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">common.tabs.serverview</xsl:with-param>
+ </xsl:call-template>
+ </a>
+ </xsl:if>
+
+ <xsl:if test="$selection='server'">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">common.tabs.serverview</xsl:with-param>
+ </xsl:call-template>
+ </xsl:if>
+ </td>
+
+ <td width="2"/>
+
+ <td class="{$mbean.class}">
+ <a href="/empty?template=emptymbean" class="tabs">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">common.tabs.mbeanview</xsl:with-param>
+ </xsl:call-template>
+ </a>
+ </td>
+
+ <td width="2"/>
+
+ <td class="{$timer.class}">
+ <a href="/serverbydomain?instanceof=javax.management.timer.Timer&template=timer" class="tabs">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">common.tabs.timerview</xsl:with-param>
+ </xsl:call-template>
+ </a>
+ </td>
+
+ <td width="2"/>
+
+ <td class="{$monitor.class}">
+ <a href="/serverbydomain?instanceof=javax.management.monitor.Monitor&template=monitor" class="tabs">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">common.tabs.monitorview</xsl:with-param>
+ </xsl:call-template>
+ </a>
+ </td>
+
+ <td width="2"/>
+
+ <td class="{$relation.class}">
+ <a href="/relation?instanceof=javax.management.relation.Relation&template=relation" class="tabs">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">common.tabs.relationview</xsl:with-param>
+ </xsl:call-template>
+ </a>
+ </td>
+
+ <td width="2"/>
+
+ <td class="{$mlet.class}">
+ <a href="/serverbydomain?instanceof=javax.management.loading.MLetMBean&template=mlet" class="tabs">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">common.tabs.mletview</xsl:with-param>
+ </xsl:call-template>
+ </a>
+ </td>
+
+ <td width="2"/>
+
+ <td class="{$about.class}">
+ <a href="/mbean?objectname=JMImplementation%3Atype%3DMBeanServerDelegate&template=about" class="tabs">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">common.tabs.about</xsl:with-param>
+ </xsl:call-template>
+ </a>
+ </td>
+ </tr>
+ </table>
+ </xsl:template>
+
+ <xsl:template name="serverview">
+ <tr>
+ <td class="darkline" align="right">
+ <a href="/">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">common.serverview.return</xsl:with-param>
+ </xsl:call-template>
+ </a>
+ </td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template name="mbeanview">
+ <xsl:param name="objectname" />
+ <xsl:param name="colspan">1</xsl:param>
+ <xsl:param name="text">common.mbeanview.return</xsl:param>
+
+ <tr>
+ <td class="darkline" align="right" colspan="{$colspan}">
+ <xsl:variable name="objectname-encode">
+ <xsl:call-template name="uri-encode">
+ <xsl:with-param name="uri" select="$objectname" />
+ </xsl:call-template>
+ </xsl:variable>
+
+ <a href="/mbean?objectname={$objectname-encode}">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id"><xsl:value-of select="$text" /></xsl:with-param>
+ </xsl:call-template>
+ </a>
+ </td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template name="aggregation-navigation">
+ <xsl:param name="url"/>
+ <xsl:param name="total"/>
+ <xsl:param name="step"/>
+ <xsl:param name="start"/>
+ <xsl:param name="str.prefix">common</xsl:param>
+
+ <xsl:if test="$total>$step">
+ <xsl:variable name="isfirst">
+ <xsl:choose>
+ <xsl:when test='$start=0'>true</xsl:when>
+ <xsl:when test='$start>0'>false</xsl:when>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="islast">
+ <xsl:choose>
+ <xsl:when test='$total<=($step + $start)'>true</xsl:when>
+ <xsl:otherwise>false</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <tr><td/></tr>
+ <tr><td>
+ <xsl:choose>
+ <xsl:when test="$isfirst='false'">
+ <a href="{$url}&start=0">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id"><xsl:value-of select="concat($str.prefix, '.navigation.first')"/></xsl:with-param>
+ </xsl:call-template>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="str">
+ <xsl:with-param name="id"><xsl:value-of select="concat($str.prefix, '.navigation.first')"/></xsl:with-param>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ -
+ <xsl:choose>
+ <xsl:when test="$isfirst='false'">
+ <xsl:variable name="previndex" select="($start - $step)"/>
+ <a href="{$url}&start={$previndex}">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id"><xsl:value-of select="concat($str.prefix, '.navigation.previous')"/></xsl:with-param>
+ </xsl:call-template>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="str">
+ <xsl:with-param name="id"><xsl:value-of select="concat($str.prefix, '.navigation.previous')"/></xsl:with-param>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ -
+ <xsl:choose>
+ <xsl:when test="$islast='false'">
+ <xsl:variable name="nextindex" select="($start + $step)"/>
+ <a href="{$url}&start={$nextindex}">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id"><xsl:value-of select="concat($str.prefix, '.navigation.next')"/></xsl:with-param>
+ </xsl:call-template>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="str">
+ <xsl:with-param name="id"><xsl:value-of select="concat($str.prefix, '.navigation.next')"/></xsl:with-param>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ -
+ <xsl:choose>
+ <xsl:when test="$islast='false'">
+ <xsl:variable name="lastindex" select="($total - ($total mod $step))"/>
+ <a href="{$url}&start={$lastindex}">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id"><xsl:value-of select="concat($str.prefix, '.navigation.last')"/></xsl:with-param>
+ </xsl:call-template>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="str">
+ <xsl:with-param name="id"><xsl:value-of select="concat($str.prefix, '.navigation.last')"/></xsl:with-param>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ </xsl:if>
+ </xsl:template>
+
+ <!-- Finds a string in the strings file by id. It can replace two params -->
+ <xsl:template name="str">
+ <xsl:param name="id"/>
+ <xsl:param name="p0"/>
+ <xsl:param name="p1"/>
+
+ <xsl:variable name="str" select="$strings//str[@id=$id]" />
+
+ <!-- This is a bit lame, should be improved -->
+ <xsl:variable name="temp">
+ <xsl:call-template name="replace-param">
+ <xsl:with-param name="text" select="$str" />
+ <xsl:with-param name="paramText">{0}</xsl:with-param>
+ <xsl:with-param name="paramValue">
+ <xsl:copy-of select="$p0" />
+ </xsl:with-param>
+ </xsl:call-template>
+ </xsl:variable>
+ <xsl:choose>
+ <xsl:when test="$p1">
+ <xsl:call-template name="replace-param">
+ <xsl:with-param name="text" select="$temp" />
+ <xsl:with-param name="paramText">{1}</xsl:with-param>
+ <xsl:with-param name="paramValue">
+ <xsl:copy-of select="$p1" />
+ </xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:copy-of select="$temp"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <!-- Replaces paramText by paramValue in text -->
+ <xsl:template name="replace-param">
+ <xsl:param name="text"/>
+ <xsl:param name="paramText"/>
+ <xsl:param name="paramValue"/>
+
+ <xsl:choose>
+ <xsl:when test="contains($text, $paramText)">
+ <xsl:copy-of select="substring-before($text, $paramText)" />
+ <xsl:copy-of select="$paramValue" />
+ <xsl:copy-of select="substring-after($text, $paramText)" />
+ </xsl:when>
+
+ <xsl:otherwise>
+ <xsl:value-of select="$text" />
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+</xsl:stylesheet>
+
+
Added: incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/constructors.xsl
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/constructors.xsl?rev=423924&view=auto
==============================================================================
--- incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/constructors.xsl (added)
+++ incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/constructors.xsl Thu Jul 20 06:04:47 2006
@@ -0,0 +1,233 @@
+<?xml version="1.0"?>
+<!--
+ Copyright (C) MX4J.
+ All rights reserved.
+
+ This software is distributed under the terms of the MX4J License version 1.0.
+ See the terms of the MX4J License in the documentation provided with this software.
+
+ Author: Carlos Quiroz (tibu@users.sourceforge.net)
+ Revision: $Revision: 1.1.1.1 $
+ -->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ <xsl:output method="html" indent="yes" encoding="UTF-8"/>
+
+ <xsl:param name="html.stylesheet">stylesheet.css</xsl:param>
+ <xsl:param name="html.stylesheet.type">text/css</xsl:param>
+ <xsl:param name="head.title">constructors.title</xsl:param>
+ <xsl:include href="common.xsl"/>
+ <xsl:include href="mbean_attributes.xsl"/>
+
+ <xsl:param name="request.objectname"/>
+
+ <!-- Constructor's parameters tempalte -->
+ <xsl:template name="parameters" match="Parameter">
+ <xsl:param name="class"/>
+
+ <tr>
+ <td colspan="3">
+ <p class="darklinebottom">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">constructors.parameters.title</xsl:with-param>
+ </xsl:call-template>
+ </p>
+ </td>
+ </tr>
+ <tr class="darkline">
+ <td width="3%">
+ <div class="tableheader">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">constructors.parameters.id</xsl:with-param>
+ </xsl:call-template>
+ </div>
+ </td>
+ <td>
+ <div class="tableheader">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">constructors.parameters.type</xsl:with-param>
+ </xsl:call-template>
+ </div>
+ </td>
+ <td align="right">
+ <div class="tableheader">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">constructors.parameters.value</xsl:with-param>
+ </xsl:call-template>
+ </div>
+ </td>
+ </tr>
+ <xsl:for-each select="Parameter">
+ <xsl:sort data-type="text" order="ascending" select="@id"/>
+ <xsl:variable name="type.id" select="concat('type', position()-1)"/>
+ <xsl:variable name="name.id" select="concat('value', position()-1)"/>
+ <xsl:variable name="type" select="@type"/>
+ <tr class="{$class}">
+ <td align="left" class="constructorrow">
+ <div align="left"><xsl:value-of select="@id"/></div>
+ </td>
+ <td align="left" class="constructorrow">
+ <xsl:value-of select="@type"/>
+ </td>
+ <td align="right" width="15%" class="constructorrow">
+ <xsl:choose>
+ <xsl:when test="@type='java.lang.String'
+ or @type='java.lang.Double'
+ or @type='java.lang.Short'
+ or @type='java.lang.Integer'
+ or @type='java.lang.Long'
+ or @type='java.lang.Float'
+ or @type='java.lang.Byte'
+ or @type='java.lang.Character'
+ or @type='java.lang.Boolean'
+ or @type='java.lang.Number'
+ or @type='javax.management.ObjectName'
+ or @type='int'
+ or @type='long'
+ or @type='short'
+ or @type='boolean'
+ or @type='byte'
+ or @type='char'
+ or @type='double'
+ or @type='float'">
+ <xsl:attribute name="valid">
+ true
+ </xsl:attribute>
+ <xsl:call-template name="raw-input">
+ <xsl:with-param name="name" select="$name.id"/>
+ <xsl:with-param name="type" select="$type"/>
+ <xsl:with-param name="value"/>
+ <xsl:with-param name="strinit">false</xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="@strinit='true'">
+ <xsl:attribute name="valid">true</xsl:attribute>
+ <xsl:call-template name="raw-input">
+ <xsl:with-param name="name" select="$name.id"/>
+ <xsl:with-param name="type" select="$type"/>
+ <xsl:with-param name="value"/>
+ <xsl:with-param name="strinit">true</xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="valid">
+ false
+ </xsl:attribute>
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">constructors.parameters.unknowntype</xsl:with-param>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ <input type="hidden" name="{$type.id}" value="{$type}"/>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </xsl:template>
+
+ <!-- Template for a Constructor node -->
+ <xsl:template match="Constructor" name="constructors">
+ <xsl:for-each select="//Constructor">
+ <form action="create">
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
+
+ <xsl:variable name="classtype">
+ <xsl:if test="(position() mod 2)=1">clearline</xsl:if>
+ <xsl:if test="(position() mod 2)=0">darkline</xsl:if>
+ </xsl:variable>
+ <xsl:variable name="hasParameters">
+ <xsl:if test="count(Parameter)>0">true</xsl:if>
+ <xsl:if test="count(Parameter)=0">false</xsl:if>
+ </xsl:variable>
+ <xsl:variable name="classname"><xsl:value-of select="@name"/></xsl:variable>
+ <tr class="{$classtype}">
+ <td valign="top" class="constructorrow">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">constructors.constructors.intro</xsl:with-param>
+ <xsl:with-param name="p0"><xsl:value-of select="@name"/></xsl:with-param>
+ </xsl:call-template>
+ </td>
+ </tr>
+ <tr class="{$classtype}">
+ <td>
+ <table cellpadding="0" width="100%" cellspacing="0" border="0">
+ <xsl:if test="$hasParameters='true'">
+ <xsl:call-template name="parameters"/>
+ </xsl:if>
+ <xsl:if test="$hasParameters='false'">
+ <tr>
+ <td width="100%" colspan="3"></td>
+ </tr>
+ </xsl:if>
+ </table>
+ </td>
+ </tr>
+ <tr class="{$classtype}">
+ <td valign="bottom" align="right" class="constructorrow">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">constructors.constructors.objectnameinput</xsl:with-param>
+ </xsl:call-template>
+ <input type="input" name="objectname"/>
+ </td>
+ </tr>
+ <tr class="{$classtype}">
+ <td align="right" class="constructorrow">
+ <xsl:variable name="str.createnew">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">constructors.constructors.createnew</xsl:with-param>
+ </xsl:call-template>
+ </xsl:variable>
+
+ <input type="submit" value="{$str.createnew}"/>
+ <input type="hidden" name="class" value="{$classname}"/>
+ </td>
+ </tr>
+
+ </table>
+ </form>
+ </xsl:for-each>
+ </xsl:template>
+
+ <!-- Exception handling template -->
+ <xsl:template match="Exception" name="error">
+ <xsl:for-each select="Exception">
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="fronttab">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">constructors.error.exception</xsl:with-param>
+ <xsl:with-param name="p0"><xsl:value-of select="@errorMsg"/></xsl:with-param>
+ </xsl:call-template>
+ </td>
+ </tr>
+ </table>
+ </xsl:for-each>
+ </xsl:template>
+
+ <!-- Main template -->
+ <xsl:template match="/" name="main">
+ <html>
+ <xsl:call-template name="head"/>
+ <body>
+ <xsl:call-template name="toprow"/>
+ <xsl:call-template name="tabs">
+ <xsl:with-param name="selection">mbean</xsl:with-param>
+ </xsl:call-template>
+ <xsl:for-each select="Class|Exception">
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td width="100%" class="page_title">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">constructors.main.title</xsl:with-param>
+ <xsl:with-param name="p0"><xsl:value-of select="@classname"/></xsl:with-param>
+ </xsl:call-template>
+ </td>
+ </tr>
+ </table>
+ </xsl:for-each>
+ <xsl:call-template name="error"/>
+ <xsl:call-template name="constructors"/>
+ <xsl:call-template name="bottom"/>
+ </body>
+ </html>
+ </xsl:template>
+</xsl:stylesheet>
+
Added: incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/create.xsl
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/create.xsl?rev=423924&view=auto
==============================================================================
--- incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/create.xsl (added)
+++ incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/create.xsl Thu Jul 20 06:04:47 2006
@@ -0,0 +1,74 @@
+<?xml version="1.0"?>
+<!--
+ Copyright (C) MX4J.
+ All rights reserved.
+
+ This software is distributed under the terms of the MX4J License version 1.0.
+ See the terms of the MX4J License in the documentation provided with this software.
+
+ Author: Carlos Quiroz (tibu@users.sourceforge.net)
+ Revision: $Revision: 1.1.1.1 $
+ -->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ <xsl:output method="html" indent="yes" encoding="UTF-8"/>
+
+ <!-- Overall parameters -->
+ <xsl:param name="html.stylesheet">stylesheet.css</xsl:param>
+ <xsl:param name="html.stylesheet.type">text/css</xsl:param>
+ <xsl:param name="head.title">create.title</xsl:param>
+
+ <!-- Request parameters -->
+ <xsl:param name="request.objectname"/>
+ <xsl:param name="request.class"/>
+
+ <xsl:include href="common.xsl"/>
+
+ <!-- Operation processing template -->
+ <xsl:template name="operation" >
+ <xsl:for-each select="Operation">
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td width="100%" class="page_title">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">create.operation.title</xsl:with-param>
+ <xsl:with-param name="p0"><xsl:value-of select="$request.class"/></xsl:with-param>
+ <xsl:with-param name="p1"><xsl:value-of select="$request.objectname"/></xsl:with-param>
+ </xsl:call-template>
+ </td>
+ </tr>
+ <tr class="darkline">
+ <td>
+ <xsl:if test="@result='success'">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">create.operation.success</xsl:with-param>
+ </xsl:call-template>
+ </xsl:if>
+ <xsl:if test="@result='error'">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">create.operation.error</xsl:with-param>
+ <xsl:with-param name="p0"><xsl:value-of select="@errorMsg"/></xsl:with-param>
+ </xsl:call-template>
+ </xsl:if>
+ </td>
+ </tr>
+ <xsl:call-template name="serverview"/>
+ </table>
+ </xsl:for-each>
+ </xsl:template>
+
+ <xsl:template match="MBeanOperation">
+ <html>
+ <xsl:call-template name="head"/>
+ <body>
+ <xsl:call-template name="toprow"/>
+ <xsl:call-template name="tabs">
+ <xsl:with-param name="selection">mbean</xsl:with-param>
+ </xsl:call-template>
+ <xsl:call-template name="operation"/>
+ <xsl:call-template name="bottom"/>
+ </body>
+ </html>
+</xsl:template>
+</xsl:stylesheet>
+
Added: incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/delete.xsl
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/delete.xsl?rev=423924&view=auto
==============================================================================
--- incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/delete.xsl (added)
+++ incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/delete.xsl Thu Jul 20 06:04:47 2006
@@ -0,0 +1,71 @@
+<?xml version="1.0"?>
+<!--
+ Copyright (C) MX4J.
+ All rights reserved.
+
+ This software is distributed under the terms of the MX4J License version 1.0.
+ See the terms of the MX4J License in the documentation provided with this software.
+
+ Author: Carlos Quiroz (tibu@users.sourceforge.net)
+ Revision: $Revision: 1.1.1.1 $
+ -->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ <xsl:output method="html" indent="yes" encoding="UTF-8"/>
+
+ <!-- Overall parameters -->
+ <xsl:param name="html.stylesheet">stylesheet.css</xsl:param>
+ <xsl:param name="html.stylesheet.type">text/css</xsl:param>
+ <xsl:param name="head.title">delete.title</xsl:param>
+
+ <!-- Request parameters -->
+ <xsl:param name="request.objectname"/>
+
+ <xsl:include href="common.xsl"/>
+
+ <xsl:template name="operation" >
+ <xsl:for-each select="Operation">
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td colspan="2" width="100%" class="page_title">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">delete.operation.title</xsl:with-param>
+ <xsl:with-param name="p0"><xsl:value-of select="$request.objectname"/></xsl:with-param>
+ </xsl:call-template>
+ </td>
+ </tr>
+ <tr class="darkline">
+ <td>
+ <xsl:if test="@result='success'">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">delete.operation.success</xsl:with-param>
+ </xsl:call-template>
+ </xsl:if>
+ <xsl:if test="@result='error'">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">delete.operation.error</xsl:with-param>
+ <xsl:with-param name="p0"><xsl:value-of select="@errorMsg"/></xsl:with-param>
+ </xsl:call-template>
+ </xsl:if>
+ </td>
+ </tr>
+ <xsl:call-template name="serverview"/>
+ </table>
+ </xsl:for-each>
+ </xsl:template>
+
+ <xsl:template match="MBeanOperation">
+ <html>
+ <xsl:call-template name="head"/>
+ <body>
+ <xsl:call-template name="toprow"/>
+ <xsl:call-template name="tabs">
+ <xsl:with-param name="selection">mbean</xsl:with-param>
+ </xsl:call-template>
+ <xsl:call-template name="operation"/>
+ <xsl:call-template name="bottom"/>
+ </body>
+ </html>
+</xsl:template>
+</xsl:stylesheet>
+
Added: incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/emptymbean.xsl
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/emptymbean.xsl?rev=423924&view=auto
==============================================================================
--- incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/emptymbean.xsl (added)
+++ incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/emptymbean.xsl Thu Jul 20 06:04:47 2006
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!--
+ Copyright (C) MX4J.
+ All rights reserved.
+
+ This software is distributed under the terms of the MX4J License version 1.0.
+ See the terms of the MX4J License in the documentation provided with this software.
+
+ Author: Carlos Quiroz (tibu@users.sourceforge.net)
+ Revision: $Revision: 1.1.1.1 $
+ -->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ <xsl:output method="html" indent="yes" encoding="ISO-8859-1"/>
+ <xsl:include href="common.xsl"/>
+ <xsl:include href="xalan-ext.xsl"/>
+
+ <xsl:param name="html.stylesheet">stylesheet.css</xsl:param>
+ <xsl:param name="html.stylesheet.type">text/css</xsl:param>
+ <xsl:param name="head.title">emptymbean.title</xsl:param>
+
+ <!-- Main template -->
+ <xsl:template match="/">
+ <html>
+ <xsl:call-template name="head"/>
+ <body>
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
+ <tr width="100%">
+ <td>
+ <xsl:call-template name="toprow"/>
+ <xsl:call-template name="tabs">
+ <xsl:with-param name="selection">mbean</xsl:with-param>
+ </xsl:call-template>
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="page_title">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">emptymbean.title</xsl:with-param>
+ </xsl:call-template>
+ </td>
+ </tr>
+ <tr>
+ <form action="/constructors">
+ <td class="page_title">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">emptymbean.querycontructors</xsl:with-param>
+ </xsl:call-template>
+ <xsl:variable name="str.query">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">emptymbean.query</xsl:with-param>
+ </xsl:call-template>
+ </xsl:variable>
+ <input type="input" name="classname"/><input type="submit" value="{$str.query}"/>
+ </td></form></tr>
+ </table>
+ <xsl:call-template name="bottom"/>
+ </td>
+ </tr>
+ </table>
+ </body>
+ </html>
+ </xsl:template>
+</xsl:stylesheet>
+
Added: incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/error.xsl
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/error.xsl?rev=423924&view=auto
==============================================================================
--- incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/error.xsl (added)
+++ incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/error.xsl Thu Jul 20 06:04:47 2006
@@ -0,0 +1,57 @@
+<?xml version="1.0"?>
+<!--
+ Copyright (C) MX4J.
+ All rights reserved.
+
+ This software is distributed under the terms of the MX4J License version 1.0.
+ See the terms of the MX4J License in the documentation provided with this software.
+
+ Author: Carlos Quiroz (tibu@users.sourceforge.net)
+ Revision: $Revision: 1.1.1.1 $
+ -->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ <xsl:output method="html" indent="yes" encoding="UTF-8"/>
+
+ <xsl:param name="html.stylesheet">stylesheet.css</xsl:param>
+ <xsl:param name="html.stylesheet.type">text/css</xsl:param>
+ <xsl:param name="head.title">error.title</xsl:param>
+ <xsl:include href="common.xsl"/>
+
+ <xsl:template match="/" name="httpexception">
+ <html>
+ <xsl:call-template name="head"/>
+ <body>
+ <xsl:call-template name="toprow"/>
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td width="100%" class="page_title">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">error.title</xsl:with-param>
+ </xsl:call-template>
+ </td>
+ </tr>
+ <xsl:for-each select="HttpException">
+ <tr>
+ <td>
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">error.httpexception.code</xsl:with-param>
+ <xsl:with-param name="p0"><xsl:value-of select="@code"/></xsl:with-param>
+ </xsl:call-template>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">error.httpexception.message</xsl:with-param>
+ <xsl:with-param name="p0"><xsl:value-of select="@description"/></xsl:with-param>
+ </xsl:call-template>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </table>
+ <xsl:call-template name="bottom"/>
+ </body>
+ </html>
+ </xsl:template>
+</xsl:stylesheet>
+
Added: incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/favicon.ico
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/favicon.ico?rev=423924&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/favicon.ico
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/identity.xsl
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/identity.xsl?rev=423924&view=auto
==============================================================================
--- incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/identity.xsl (added)
+++ incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/identity.xsl Thu Jul 20 06:04:47 2006
@@ -0,0 +1,21 @@
+<?xml version="1.0"?>
+<!--
+ Copyright (C) MX4J.
+ All rights reserved.
+
+ This software is distributed under the terms of the MX4J License version 1.0.
+ See the terms of the MX4J License in the documentation provided with this software.
+
+ Author: Carlos Quiroz (tibu@users.sourceforge.net)
+ Revision: $Revision: 1.1.1.1 $
+
+ Note: Extracted from xalan distribution
+ -->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+<!-- From the XSLT spec: "the identity transformation can be written using xsl:copy as follows:" -->
+ <xsl:template match="@*|node()">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+</xsl:stylesheet>
Added: incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/invoke.xsl
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/invoke.xsl?rev=423924&view=auto
==============================================================================
--- incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/invoke.xsl (added)
+++ incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/invoke.xsl Thu Jul 20 06:04:47 2006
@@ -0,0 +1,95 @@
+<?xml version="1.0"?>
+<!--
+ Copyright (C) MX4J.
+ All rights reserved.
+
+ This software is distributed under the terms of the MX4J License version 1.0.
+ See the terms of the MX4J License in the documentation provided with this software.
+
+ Author: Carlos Quiroz (tibu@users.sourceforge.net)
+ Revision: $Revision: 1.1.1.1 $
+ -->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ <xsl:output method="html" indent="yes" encoding="UTF-8"/>
+
+ <!-- Overall parameters -->
+ <xsl:param name="html.stylesheet">stylesheet.css</xsl:param>
+ <xsl:param name="html.stylesheet.type">text/css</xsl:param>
+ <xsl:param name="head.title">invoke.title</xsl:param>
+
+ <!-- Request parameters -->
+ <xsl:param name="request.objectname"/>
+ <xsl:param name="request.method"/>
+
+ <xsl:include href="common.xsl"/>
+ <xsl:include href="mbean_attributes.xsl"/>
+
+ <!-- Operation invoke -->
+ <xsl:template name="operation" >
+ <xsl:for-each select="Operation">
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td width="100%" class="page_title">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">invoke.operation.title</xsl:with-param>
+ <xsl:with-param name="p0"><xsl:value-of select="$request.method"/></xsl:with-param>
+ <xsl:with-param name="p1"><xsl:value-of select="$request.objectname"/></xsl:with-param>
+ </xsl:call-template>
+ </td>
+ </tr>
+ <tr>
+ <td class="clearline">
+ <xsl:if test="@result='success'">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">invoke.operation.success</xsl:with-param>
+ </xsl:call-template>
+ <br/>
+ <xsl:if test="not (@return='')">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">invoke.operation.success.result</xsl:with-param>
+ <xsl:with-param name="p0">
+ <xsl:call-template name="renderobject">
+ <xsl:with-param name="objectclass" select="@returnclass"/>
+ <xsl:with-param name="objectvalue" select="@return"/>
+ </xsl:call-template>
+ </xsl:with-param>
+ </xsl:call-template>
+ </xsl:if>
+ <xsl:if test="@return=''">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">invoke.operation.success.noresult</xsl:with-param>
+ </xsl:call-template>
+ </xsl:if>
+ </xsl:if>
+ <xsl:if test="@result='error'">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">invoke.operation.success.error</xsl:with-param>
+ <xsl:with-param name="p0"><xsl:value-of select="@errorMsg"/></xsl:with-param>
+ </xsl:call-template>
+ </xsl:if>
+ </td>
+ </tr>
+ <xsl:call-template name="mbeanview">
+ <xsl:with-param name="objectname" select="$request.objectname"/>
+ </xsl:call-template>
+ </table>
+ </xsl:for-each>
+ </xsl:template>
+
+ <!-- Main template -->
+ <xsl:template match="MBeanOperation" name="main">
+ <html>
+ <xsl:call-template name="head"/>
+ <body>
+ <xsl:call-template name="toprow"/>
+ <xsl:call-template name="tabs">
+ <xsl:with-param name="selection">mbean</xsl:with-param>
+ </xsl:call-template>
+ <xsl:call-template name="operation"/>
+ <xsl:call-template name="bottom"/>
+ </body>
+ </html>
+ </xsl:template>
+</xsl:stylesheet>
+
Added: incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/logo.gif
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/logo.gif?rev=423924&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/logo.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/mbean.xsl
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/mbean.xsl?rev=423924&view=auto
==============================================================================
--- incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/mbean.xsl (added)
+++ incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/mbean.xsl Thu Jul 20 06:04:47 2006
@@ -0,0 +1,391 @@
+<?xml version="1.0"?>
+<!--
+ Copyright (C) MX4J.
+ All rights reserved.
+
+ This software is distributed under the terms of the MX4J License version 1.0.
+ See the terms of the MX4J License in the documentation provided with this software.
+
+ Author: Carlos Quiroz (tibu@users.sourceforge.net)
+ Contribution: Lachezar Dobrev (l.dobrev@lsnsoft.com)
+ Revision: $Revision: 1.1.1.1 $
+ -->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ <xsl:output method="html" indent="yes" encoding="UTF-8"/>
+
+ <xsl:param name="html.stylesheet">stylesheet.css</xsl:param>
+ <xsl:param name="html.stylesheet.type">text/css</xsl:param>
+ <xsl:param name="head.title">mbean.title</xsl:param>
+ <xsl:include href="common.xsl"/>
+ <xsl:include href="mbean_attributes.xsl"/>
+
+ <xsl:param name="request.objectname"/>
+
+ <xsl:template name="parameters" match="Parameter">
+ <xsl:param name="class"/>
+ <xsl:for-each select="Parameter">
+ <xsl:sort data-type="text" order="ascending" select="@id"/>
+ <xsl:variable name="type.id" select="concat('type', position()-1)"/>
+ <xsl:variable name="name.id" select="concat('value', position()-1)"/>
+ <xsl:variable name="type" select="@type"/>
+ <tr class="{$class}">
+ <td width="4%" align="left" class="mbean_row">
+ <div align="left"><xsl:value-of select="@id"/></div>
+ </td>
+ <td width="18%" align="left" class="mbean_row">
+ <xsl:value-of select="@name"/>
+ </td>
+ <td width="18%" align="left" class="mbean_row">
+ <xsl:value-of select="@description"/>
+ </td>
+ <td width="45%" align="left" class="mbean_row">
+ <xsl:value-of select="@type"/>
+ </td>
+ <td align="right" width="15%" class="mbean_row">
+ <xsl:choose>
+ <xsl:when test="@type='java.lang.String'
+ or @type='java.lang.String'
+ or @type='java.lang.Double'
+ or @type='java.lang.Short'
+ or @type='java.lang.Integer'
+ or @type='java.lang.Long'
+ or @type='java.lang.Float'
+ or @type='java.lang.Byte'
+ or @type='java.lang.Boolean'
+ or @type='java.lang.Number'
+ or @type='java.lang.Character'
+ or @type='javax.management.ObjectName'
+ or @type='int'
+ or @type='short'
+ or @type='boolean'
+ or @type='byte'
+ or @type='double'
+ or @type='long'
+ or @type='char'
+ or @type='float'">
+ <xsl:attribute name="valid">true</xsl:attribute>
+ <xsl:call-template name="raw-input">
+ <xsl:with-param name="name" select="$name.id"/>
+ <xsl:with-param name="type" select="$type"/>
+ <xsl:with-param name="value"/>
+ <xsl:with-param name="strinit">false</xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="@strinit='true'">
+ <xsl:attribute name="valid">true</xsl:attribute>
+ <xsl:call-template name="raw-input">
+ <xsl:with-param name="name" select="$name.id"/>
+ <xsl:with-param name="type" select="$type"/>
+ <xsl:with-param name="value"/>
+ <xsl:with-param name="strinit">true</xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="valid">false</xsl:attribute>
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean.parameters.unknown</xsl:with-param>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ <input type="hidden" name="{$type.id}" value="{$type}"/>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </xsl:template>
+
+ <xsl:template name="operations">
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td colspan="7" width="100%" class="mbeans">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean.operations.title</xsl:with-param>
+ </xsl:call-template>
+ </td>
+ </tr>
+ </table>
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
+ <tr class="darkline">
+ <td width="20%">
+ <div class="tableheader">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean.operations.name</xsl:with-param>
+ </xsl:call-template>
+ </div>
+ </td>
+ <td width="20%">
+ <div class="tableheader">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean.operations.returntype</xsl:with-param>
+ </xsl:call-template>
+ </div>
+ </td>
+ <td width="*">
+ <div class="tableheader">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean.operations.description</xsl:with-param>
+ </xsl:call-template>
+ </div>
+ </td>
+ <td/>
+ </tr>
+ <xsl:variable name="invoke.str">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean.operations.invoke</xsl:with-param>
+ </xsl:call-template>
+ </xsl:variable>
+ <xsl:for-each select="Operation">
+ <xsl:variable name="name"><xsl:value-of select="@name"/></xsl:variable>
+ <xsl:variable name="classtype">
+ <xsl:if test="(position() mod 2)=1">clearline</xsl:if>
+ <xsl:if test="(position() mod 2)=0">darkline</xsl:if>
+ </xsl:variable>
+ <xsl:variable name="hasParameters">
+ <xsl:if test="count(./Parameter)>0">true</xsl:if>
+ <xsl:if test="count(./Parameter)=0">false</xsl:if>
+ </xsl:variable>
+
+
+ <tr class="{$classtype}">
+ <form action="invoke">
+ <input name="operation" type="hidden" value="{$name}"/>
+ <input type="hidden" name="objectname" value="{$request.objectname}"/>
+ <td width="20%" align="left" class="mbean_row">
+ <xsl:value-of select="@name"/>
+ </td>
+ <td align="left" class="mbean_row">
+ <xsl:value-of select="@return"/>
+ </td>
+ <td align="left" class="mbean_row">
+ <xsl:value-of select="@description"/>
+ </td>
+ <xsl:if test="$hasParameters='false'">
+ <td align="center" class="mbean_row">
+ <input type="submit" value="{$invoke.str}"/>
+ </td>
+ </xsl:if>
+ <xsl:if test="$hasParameters='true'">
+ <td/>
+ <tr class="{$classtype}">
+ <td valign="top" align="left" width="20%" class="mbean_row">
+ <strong>
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean.operations.parameter</xsl:with-param>
+ </xsl:call-template>
+ </strong>
+ </td>
+ <td colspan="2">
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
+ <tr class="{$classtype}">
+ <td width="4%" class="mbean_row">
+ <strong>
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean.operations.parameterid</xsl:with-param>
+ </xsl:call-template>
+ </strong>
+ </td>
+ <td width="18%" class="mbean_row">
+ <strong>
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean.operations.parametername</xsl:with-param>
+ </xsl:call-template>
+ </strong>
+ </td>
+ <td width="50%" class="mbean_row">
+ <strong>
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean.operations.parameterdescription</xsl:with-param>
+ </xsl:call-template>
+ </strong>
+ </td>
+ <td class="mbean_row">
+ <strong>
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean.operations.parameterclass</xsl:with-param>
+ </xsl:call-template>
+ </strong>
+ </td>
+ </tr>
+ <xsl:call-template name="parameters">
+ <xsl:with-param name="class" select="$classtype"/>
+ </xsl:call-template>
+ </table>
+ <td align="center" valign="bottom">
+ <input style="pad-right: 1em;" type="submit" value="{$invoke.str}"/>
+ </td>
+ </td>
+ </tr>
+ </xsl:if>
+ </form>
+ </tr>
+ </xsl:for-each>
+ </table>
+ </xsl:template>
+
+ <xsl:template name="constructors">
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
+ <xsl:for-each select="Constructor">
+ <xsl:if test="(position())=1">
+ <tr class="darkline">
+ <td>
+ <div class="tableheader">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean.constructors.class</xsl:with-param>
+ </xsl:call-template>
+ </div>
+ </td>
+ <td>
+ <div class="tableheader">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean.constructors.description</xsl:with-param>
+ </xsl:call-template>
+ </div>
+ </td>
+
+ </tr>
+ </xsl:if>
+ <form action="create">
+ <xsl:variable name="classtype">
+ <xsl:if test="(position() mod 2)=1">clearline</xsl:if>
+ <xsl:if test="(position() mod 2)=0">darkline</xsl:if>
+ </xsl:variable>
+ <xsl:variable name="classname"><xsl:value-of select="../@classname"/></xsl:variable>
+ <tr class="{$classtype}">
+ <td class="mbean_row">
+ <xsl:value-of select="$classname"/>
+ </td>
+ <td class="mbean_row">
+ <xsl:value-of select="@description"/>
+ </td>
+ </tr>
+ <tr class="{$classtype}">
+ <td valign="top" align="left" width="20%" class="mbean_row">
+ <strong>
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean.constructors.parameter</xsl:with-param>
+ </xsl:call-template>
+ </strong>
+ </td>
+ <td>
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td width="4%" class="mbean_row">
+ <strong>
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean.constructors.parameterid</xsl:with-param>
+ </xsl:call-template>
+ </strong>
+ </td>
+ <td width="18%" class="mbean_row">
+ <strong>
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean.constructors.parametername</xsl:with-param>
+ </xsl:call-template>
+ </strong>
+ </td>
+ <td width="50%" class="mbean_row">
+ <strong>
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean.constructors.parameterdescription</xsl:with-param>
+ </xsl:call-template>
+ </strong>
+ </td>
+ <td class="mbean_row">
+ <strong>
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean.constructors.parameterclass</xsl:with-param>
+ </xsl:call-template>
+ </strong>
+ </td>
+ </tr>
+ <xsl:call-template name="parameters">
+ <!--<xsl:with-param name="class" select="$classtype"/>-->
+ </xsl:call-template>
+ </table>
+ </td>
+ </tr>
+ <tr class="{$classtype}">
+ <td class="mbean_row" align="right" colspan="2">
+ <strong>
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean.constructors.objectname</xsl:with-param>
+ </xsl:call-template>
+ </strong>
+ <input name="objectname" value=""/>
+ </td>
+ </tr>
+ <tr class="{$classtype}">
+ <td class="mbean_row" colspan="2">
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
+ <tr class="$class">
+ <td align="right" colspan="4"/>
+ <td align="right" class="mbean_row">
+ <xsl:variable name="create.str">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean.constructors.create</xsl:with-param>
+ </xsl:call-template>
+ </xsl:variable>
+ <input type="submit" value="{$create.str}"/>
+ <input type="hidden" name="class" value="{$classname}"/>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </form>
+ </xsl:for-each>
+ </table>
+ </xsl:template>
+
+ <!-- Main processing template -->
+ <xsl:template match="MBean">
+ <html>
+ <xsl:call-template name="head"/>
+ <body>
+ <xsl:call-template name="toprow"/>
+ <xsl:call-template name="tabs">
+ <xsl:with-param name="selection">mbean</xsl:with-param>
+ </xsl:call-template>
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="page_title">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean.mbean.title</xsl:with-param>
+ <xsl:with-param name="p0"><xsl:value-of select="@objectname"/></xsl:with-param>
+ </xsl:call-template>
+
+ <xsl:if test="not (@description='')">
+ <br/>
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean.mbean.description</xsl:with-param>
+ <xsl:with-param name="p0"><xsl:value-of select="@description"/></xsl:with-param>
+ </xsl:call-template>
+ </xsl:if>
+ </td>
+ </tr>
+ <tr>
+ <td width="100%" class="mbeans">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean.mbean.attributes</xsl:with-param>
+ </xsl:call-template>
+ </td>
+ </tr>
+ </table>
+ <xsl:call-template name="attribute"/>
+ <xsl:call-template name="operations"/>
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td colspan="7" width="100%" class="mbeans">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean.mbean.constructors</xsl:with-param>
+ </xsl:call-template>
+ </td>
+ </tr>
+ </table>
+ <xsl:call-template name="constructors"/>
+ <xsl:call-template name="bottom"/>
+ </body>
+ </html>
+</xsl:template>
+</xsl:stylesheet>
+
Added: incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/mbean_attributes.xsl
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/mbean_attributes.xsl?rev=423924&view=auto
==============================================================================
--- incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/mbean_attributes.xsl (added)
+++ incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/mbean_attributes.xsl Thu Jul 20 06:04:47 2006
@@ -0,0 +1,377 @@
+<?xml version="1.0"?>
+<!--
+ Copyright (C) MX4J.
+ All rights reserved.
+
+ This software is distributed under the terms of the MX4J License version 1.0.
+ See the terms of the MX4J License in the documentation provided with this software.
+
+ Author: Carlos Quiroz (tibu@users.sourceforge.net)
+ Revision: $Revision: 1.1.1.1 $
+ -->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ <xsl:output method="html" indent="yes" encoding="UTF-8"/>
+
+ <!-- array link generator -->
+ <xsl:template name="array">
+
+ <xsl:choose>
+ <xsl:when test="@isnull='false'">
+ <xsl:variable name="url">getattribute?objectname=<xsl:value-of select="../@objectname"/>&attribute=<xsl:value-of select="@name"/>&format=array&template=viewarray</xsl:variable>
+ <a href="{$url}">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean_attributes.array.view</xsl:with-param>
+ </xsl:call-template>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean_attributes.array.null</xsl:with-param>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <!-- Collection link generator -->
+ <xsl:template name="collection">
+
+ <xsl:choose>
+ <xsl:when test="@isnull='false'">
+ <xsl:variable name="url">getattribute?objectname=<xsl:value-of select="../@objectname"/>&attribute=<xsl:value-of select="@name"/>&format=collection&template=viewcollection</xsl:variable>
+ <a href="{$url}">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean_attributes.collection.view</xsl:with-param>
+ </xsl:call-template>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean_attributes.collection.null</xsl:with-param>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <!-- Map link generator -->
+ <xsl:template name="map">
+
+ <xsl:choose>
+ <xsl:when test="@isnull='false'">
+ <xsl:variable name="url">getattribute?objectname=<xsl:value-of select="../@objectname"/>&attribute=<xsl:value-of select="@name"/>&format=map&template=viewmap</xsl:variable>
+ <a href="{$url}">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean_attributes.map.view</xsl:with-param>
+ </xsl:call-template>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean_attributes.map.null</xsl:with-param>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <!-- Composite data -->
+ <xsl:template name="compositedata">
+
+ <xsl:choose>
+ <xsl:when test="@isnull='false'">
+ <xsl:variable name="url">getattribute?objectname=<xsl:value-of select="../@objectname"/>&attribute=<xsl:value-of select="@name"/>&format=compositedata&template=identity</xsl:variable>
+ <a href="{$url}">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean_attributes.compositedata.view</xsl:with-param>
+ </xsl:call-template>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean_attributes.compositedata.null</xsl:with-param>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <!-- Composite data -->
+ <xsl:template name="tabulardata">
+
+ <xsl:choose>
+ <xsl:when test="@isnull='false'">
+ <xsl:variable name="url">getattribute?objectname=<xsl:value-of select="../@objectname"/>&attribute=<xsl:value-of select="@name"/>&format=tabulardata&template=viewtabulardata</xsl:variable>
+ <a href="{$url}">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean_attributes.tabulardata.view</xsl:with-param>
+ </xsl:call-template>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean_attributes.tabulardata.null</xsl:with-param>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="raw-input">
+ <xsl:param name="type"/>
+ <xsl:param name="value"/>
+ <xsl:param name="name"/>
+ <xsl:param name="strinit"/>
+
+ <xsl:variable name="result">none</xsl:variable>
+ <xsl:choose>
+ <xsl:when test="$type='java.lang.Boolean' or $type='boolean'">
+ <xsl:choose>
+ <xsl:when test="$value='true'">
+ <input name="{$name}" type="radio" checked="checked" value="true">true </input>
+ <input name="{$name}" type="radio" value="false">false </input>
+ </xsl:when>
+ <xsl:when test="$value='false'">
+ <input name="{$name}" type="radio" value="true">true </input>
+ <input name="{$name}" type="radio" checked="checked" value="false">false </input>
+ </xsl:when>
+ <xsl:otherwise>
+ <input name="{$name}" type="radio" value="true">true </input>
+ <input name="{$name}" type="radio" value="false">false </input>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <input type="text" name="{$name}" value="{$value}"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template match="Attribute[@type]" name="form">
+ <xsl:param name="value"/>
+ <xsl:choose>
+ <xsl:when test="@strinit='true'">
+ <xsl:variable name="name" select="@name"/>
+ <xsl:call-template name="raw-input">
+ <xsl:with-param name="type" select="@type"/>
+ <xsl:with-param name="value" select="$value"/>
+ <xsl:with-param name="name">value_<xsl:value-of select="@name"/>
+ </xsl:with-param>
+ <xsl:with-param name="strinit">true</xsl:with-param>
+ </xsl:call-template>
+ <xsl:call-template name="submit">
+ <xsl:with-param name="name" select="@name"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean_attributes.form.unknowntype</xsl:with-param>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <!-- Makes the submit button for setting one attribute -->
+ <xsl:template match="Attribute[@type]" name="submit">
+ <xsl:param name="name"/>
+ <xsl:if test="@strinit='true'">
+ <xsl:variable name="str.set">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean_attributes.submit.set</xsl:with-param>
+ </xsl:call-template>
+ </xsl:variable>
+ <input type="Submit" name="set_{$name}" value="{$str.set}"/>
+ </xsl:if>
+ </xsl:template>
+
+ <!-- makes a link for objectnames from current value element -->
+ <xsl:template name="objectnamevalue">
+ <xsl:call-template name="renderobject">
+ <xsl:with-param name="objectclass">javax.management.ObjectName</xsl:with-param>
+ <xsl:with-param name="objectvalue" select="@value"/>
+ </xsl:call-template>
+ </xsl:template>
+
+ <!-- Renders an object
+ Currently transforms javax.management.ObjectName to links
+ Renders others as strings -->
+ <xsl:template name="renderobject">
+ <xsl:param name="objectclass"/>
+ <xsl:param name="objectvalue"/>
+ <xsl:choose>
+ <xsl:when test="$objectclass='javax.management.ObjectName'">
+ <xsl:variable name="name_encoded">
+ <xsl:call-template name="uri-encode">
+ <xsl:with-param name="uri">
+ <xsl:value-of select="$objectvalue"/>
+ </xsl:with-param>
+ </xsl:call-template>
+ </xsl:variable>
+ <a href="/mbean?objectname={$name_encoded}">
+ <xsl:value-of select="$objectvalue"/>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$objectvalue"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template match="Attribute" name="WO">
+ <td align="right" class="mbean_row">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean_attributes.WO.readonly</xsl:with-param>
+ </xsl:call-template>
+ </td>
+ <td align="right" class="mbean_row">
+ <xsl:call-template name="form"/>
+ </td>
+ </xsl:template>
+
+ <!-- Template for readwrite attributes -->
+ <xsl:template match="Attribute" name="RW">
+ <td align="right" class="mbean_row">
+ <xsl:choose>
+ <xsl:when test="@aggregation='collection'">
+ <xsl:call-template name="collection"/>
+ </xsl:when>
+ <xsl:when test="@aggregation='map'">
+ <xsl:call-template name="map"/>
+ </xsl:when>
+ <xsl:when test="starts-with(@type, '[L')">
+ <xsl:call-template name="array"/>
+ </xsl:when>
+ <xsl:when test="@type='javax.management.ObjectName'">
+ <xsl:call-template name="objectnamevalue"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="@value"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td align="right" class="mbean_row">
+ <xsl:call-template name="form">
+ <xsl:with-param name="value" select="@value"/>
+ </xsl:call-template>
+ </td>
+ </xsl:template>
+
+ <!-- Template for readonly attributes -->
+ <xsl:template match="Attribute" name="RO">
+ <td align="right" class="mbean_row">
+ <xsl:choose>
+ <xsl:when test="@aggregation='collection'">
+ <xsl:call-template name="collection"/>
+ </xsl:when>
+ <xsl:when test="@aggregation='map'">
+ <xsl:call-template name="map"/>
+ </xsl:when>
+ <xsl:when test="starts-with(@type, '[L')">
+ <xsl:call-template name="array"/>
+ </xsl:when>
+ <xsl:when test="@type='javax.management.ObjectName'">
+ <xsl:call-template name="objectnamevalue"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="@value"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td align="right" class="mbean_row">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean_attributes.RO.readonly</xsl:with-param>
+ </xsl:call-template>
+ </td>
+ </xsl:template>
+
+ <!-- MBean's attributes template -->
+ <xsl:template name="attribute">
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
+ <tr class="darkline">
+ <td width="20%" align="left" class="darkline">
+ <div class="tableheader">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean_attributes.attribute.name</xsl:with-param>
+ </xsl:call-template>
+ </div>
+ </td>
+ <td width="20%" align="left" class="darkline">
+ <div class="tableheader">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean_attributes.attribute.description</xsl:with-param>
+ </xsl:call-template>
+ </div>
+ </td>
+ <td width="20%" align="left" class="darkline">
+ <div class="tableheader">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean_attributes.attribute.type</xsl:with-param>
+ </xsl:call-template>
+ </div>
+ </td>
+ <td width="20%" align="right" class="darkline">
+ <div class="tableheader">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean_attributes.attribute.value</xsl:with-param>
+ </xsl:call-template>
+ </div>
+ </td>
+ <td width="*" align="right" class="darkline">
+ <div class="tableheader">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean_attributes.attribute.newvalue</xsl:with-param>
+ </xsl:call-template>
+ </div>
+ </td>
+ </tr>
+ <form action="setattributes" method="get">
+ <xsl:for-each select="Attribute">
+ <xsl:sort data-type="text" order="ascending" select="@name"/>
+ <xsl:variable name="classtype">
+ <xsl:if test="(position() mod 2)=1">clearline</xsl:if>
+ <xsl:if test="(position() mod 2)=0">darkline</xsl:if>
+ </xsl:variable>
+ <tr class="{$classtype}">
+ <td class="mbean_row">
+ <xsl:value-of select="@name"/>
+ </td>
+ <td class="mbean_row">
+ <xsl:value-of select="@description"/>
+ </td>
+ <td class="mbean_row">
+ <xsl:choose>
+ <xsl:when test="starts-with(@type, '[L')">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean_attributes.attribute.arrayof</xsl:with-param>
+ <xsl:with-param name="p0">
+ <xsl:value-of select="substring-before(substring-after(@type, '[L'), ';')"/>
+ </xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="@type"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <xsl:choose>
+ <xsl:when test="@availability='RO'">
+ <xsl:call-template name="RO"/>
+ </xsl:when>
+ <xsl:when test="@availability='RW'">
+ <xsl:call-template name="RW"/>
+ </xsl:when>
+ <xsl:when test="@availability='WO'">
+ <xsl:call-template name="WO"/>
+ </xsl:when>
+ </xsl:choose>
+ </tr>
+ </xsl:for-each>
+ <td colspan="5" align="right" class="attributes_setall">
+ <input type="hidden" name="objectname" value="{$request.objectname}"/>
+ <xsl:variable name="str.setall">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean_attributes.attribute.setall</xsl:with-param>
+ </xsl:call-template>
+ </xsl:variable>
+ <input type="Submit" name="setall" value="{$str.setall}"/>
+ </td>
+ </form>
+ </table>
+ </xsl:template>
+</xsl:stylesheet>
Added: incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/mlet.xsl
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/mlet.xsl?rev=423924&view=auto
==============================================================================
--- incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/mlet.xsl (added)
+++ incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/mlet.xsl Thu Jul 20 06:04:47 2006
@@ -0,0 +1,81 @@
+<?xml version="1.0"?>
+<!--
+ Copyright (C) MX4J.
+ All rights reserved.
+
+ This software is distributed under the terms of the MX4J License version 1.0.
+ See the terms of the MX4J License in the documentation provided with this software.
+
+ Author: Carlos Quiroz (tibu@users.sourceforge.net)
+ Revision: $Revision: 1.1.1.1 $
+ -->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ <xsl:output method="html" indent="yes" encoding="UTF-8"/>
+
+ <xsl:param name="html.stylesheet">stylesheet.css</xsl:param>
+ <xsl:param name="html.stylesheet.type">text/css</xsl:param>
+ <xsl:param name="head.title">mlet.title</xsl:param>
+ <xsl:include href="common.xsl"/>
+
+ <xsl:template name="domain">
+ <xsl:for-each select="Domain[Mbean]">
+ <tr>
+ <td class="domainline">
+ <div class="domainheading"><xsl:value-of select="@name"/></div>
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
+ <xsl:call-template name="mbean"/>
+ </table>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </xsl:template>
+
+ <xsl:template match="MBean" name="mbean">
+ <xsl:for-each select="MBean">
+ <tr>
+ <xsl:variable name="classtype">
+ <xsl:if test="(position() mod 2)=1">darkline</xsl:if>
+ <xsl:if test="(position() mod 2)=0">clearline</xsl:if>
+ </xsl:variable>
+ <xsl:variable name="objectname" select="@objectname"/>
+ <td class="{$classtype}">
+ <a href="mbean?objectname={$objectname}"><xsl:value-of select="$objectname"/></a>
+ </td>
+ <td align="right" class="{$classtype}">
+ <a href="delete?objectname={$objectname}">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mlet.mbean.unregister</xsl:with-param>
+ </xsl:call-template>
+ </a>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </xsl:template>
+
+ <!-- Main processing template -->
+ <xsl:template match="Server" name="main">
+ <html>
+ <xsl:call-template name="head"/>
+ <body>
+ <xsl:call-template name="toprow"/>
+ <xsl:call-template name="tabs">
+ <xsl:with-param name="selection">mlet</xsl:with-param>
+ </xsl:call-template>
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td colspan="7" width="100%" class="page_title">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mlet.main.title</xsl:with-param>
+ </xsl:call-template>
+ </td>
+ </tr>
+ </table>
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
+ <xsl:call-template name="domain"/>
+ </table>
+ <xsl:call-template name="bottom"/>
+ </body>
+ </html>
+</xsl:template>
+</xsl:stylesheet>
+
Added: incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/monitor.xsl
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/monitor.xsl?rev=423924&view=auto
==============================================================================
--- incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/monitor.xsl (added)
+++ incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/monitor.xsl Thu Jul 20 06:04:47 2006
@@ -0,0 +1,147 @@
+<?xml version="1.0"?>
+<!--
+ Copyright (C) MX4J.
+ All rights reserved.
+
+ This software is distributed under the terms of the MX4J License version 1.0.
+ See the terms of the MX4J License in the documentation provided with this software.
+
+ Author: Carlos Quiroz (tibu@users.sourceforge.net)
+ Revision: $Revision: 1.1.1.1 $
+ -->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ <xsl:output method="html" indent="yes" encoding="UTF-8"/>
+
+ <xsl:param name="html.stylesheet">stylesheet.css</xsl:param>
+ <xsl:param name="html.stylesheet.type">text/css</xsl:param>
+ <xsl:param name="head.title">monitor.title</xsl:param>
+ <xsl:include href="common.xsl"/>
+
+ <!-- Domain template -->
+ <xsl:template name="domain">
+ <xsl:for-each select="Domain[MBean]">
+ <tr>
+ <td class="domainline">
+ <div class="domainheading"><xsl:value-of select="@name"/></div>
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
+ <xsl:call-template name="mbean"/>
+ </table>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </xsl:template>
+
+ <!-- MBean template -->
+ <xsl:template match="MBean" name="mbean">
+ <xsl:for-each select="MBean">
+ <tr>
+ <xsl:variable name="classtype">
+ <xsl:if test="(position() mod 2)=1">darkline</xsl:if>
+ <xsl:if test="(position() mod 2)=0">clearline</xsl:if>
+ </xsl:variable>
+ <xsl:variable name="objectname">
+ <xsl:call-template name="uri-encode">
+ <xsl:with-param name="uri" select="@objectname"/>
+ </xsl:call-template>
+ </xsl:variable>
+ <td class="{$classtype}">
+ <a href="mbean?objectname={$objectname}"><xsl:value-of select="@objectname"/></a>
+ </td>
+ <td align="right" class="{$classtype}">
+ <a href="delete?objectname={$objectname}">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">monitor.mbean.unregister</xsl:with-param>
+ </xsl:call-template>
+ </a>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </xsl:template>
+
+ <!-- Main template -->
+ <xsl:template match="Server" name="main">
+ <html>
+ <xsl:call-template name="head"/>
+ <body>
+ <xsl:call-template name="toprow"/>
+ <xsl:call-template name="tabs">
+ <xsl:with-param name="selection">monitor</xsl:with-param>
+ </xsl:call-template>
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td colspan="7" width="100%" class="page_title">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">monitor.main.title</xsl:with-param>
+ </xsl:call-template>
+ </td>
+ </tr>
+ <tr class="fronttab">
+ <form action="create">
+ <xsl:variable name="str.createstring.button">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">monitor.main.createstring.button</xsl:with-param>
+ </xsl:call-template>
+ </xsl:variable>
+ <td width="100%" align="right">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">monitor.main.createstring.label</xsl:with-param>
+ </xsl:call-template>
+ <input type="input" name="objectname"/>
+ <input type="hidden" name="template" value="monitor_create"/>
+ <input type="hidden" name="class" value="javax.management.monitor.StringMonitor"/>
+ </td>
+ <td align="right">
+ <input type="submit" style="width: 15em;" value="{$str.createstring.button}"/>
+ </td>
+ </form>
+ </tr>
+ <tr class="fronttab">
+ <form action="create">
+ <xsl:variable name="str.creategauge.button">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">monitor.main.creategauge.button</xsl:with-param>
+ </xsl:call-template>
+ </xsl:variable>
+ <td align="right">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">monitor.main.creategauge.label</xsl:with-param>
+ </xsl:call-template>
+ <input type="input" name="objectname"/>
+ <input type="hidden" name="template" value="monitor_create"/>
+ <input type="hidden" name="class" value="javax.management.monitor.GaugeMonitor"/>
+ </td>
+ <td align="right">
+ <input type="submit" style="width: 15em;" value="{$str.creategauge.button}"/>
+ </td>
+ </form>
+ </tr>
+ <tr class="fronttab">
+ <form action="create">
+ <xsl:variable name="str.createcounter.button">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">monitor.main.createcounter.button</xsl:with-param>
+ </xsl:call-template>
+ </xsl:variable>
+ <td width="100%" align="right">
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">monitor.main.createcounter.label</xsl:with-param>
+ </xsl:call-template>
+ <input type="input" name="objectname"/>
+ </td>
+ <td align="right">
+ <input type="hidden" name="template" value="monitor_create"/>
+ <input type="hidden" name="class" value="javax.management.monitor.CounterMonitor"/>
+ <input type="submit" style="width: 15em;" value="{$str.createcounter.button}"/>
+ </td>
+ </form>
+ </tr>
+ </table>
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
+ <xsl:call-template name="domain"/>
+ </table>
+ <xsl:call-template name="bottom"/>
+ </body>
+ </html>
+ </xsl:template>
+</xsl:stylesheet>
+
Re: svn commit: r423924 [1/2] - in /incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources:
./ mx4j/ mx4j/tools/ mx4j/tools/adaptor/ mx4j/tools/adaptor/http/ mx4j/tools/adaptor/http/xsl/
Posted by Upayavira <uv...@odoko.co.uk>.
sfrenot@apache.org wrote:
> Author: sfrenot
> Date: Thu Jul 20 06:04:47 2006
> New Revision: 423924
>
> URL: http://svn.apache.org/viewvc?rev=423924&view=rev
> Log: (empty)
Stephane, can you please ensure that you do give a descriptive log
message with any commit? It is important for us to be able to provide
the necessary oversight over our code base.
Thanks!
Regards, Upayavira