felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sfre...@apache.org
Subject svn commit: r423924 [2/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/
Date Thu, 20 Jul 2006 13:04:49 GMT
Added: incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/monitor_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/monitor_create.xsl?rev=423924&view=auto
==============================================================================
--- incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/monitor_create.xsl (added)
+++ incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/monitor_create.xsl Thu Jul 20 06:04:47 2006
@@ -0,0 +1,99 @@
+<?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">monitor_create.title</xsl:param>
+
+	<!-- Request parameters -->
+	<xsl:param name="request.objectname"/>
+	<xsl:param name="request.class"/>
+
+	<xsl:include href="common.xsl"/>
+
+	<xsl:template name="operation" >
+		<xsl:for-each select="Operation">
+		<xsl:variable name="monitor_type">
+			<xsl:if test="$request.class='javax.management.monitor.StringMonitor'">
+				<xsl:call-template name="str">
+					<xsl:with-param name="id">monitor_create.operation.stringmonitor</xsl:with-param>
+				</xsl:call-template>
+			</xsl:if>
+			<xsl:if test="$request.class='javax.management.monitor.GaugeMonitor'">
+				<xsl:call-template name="str">
+					<xsl:with-param name="id">monitor_create.operation.gaguemonitor</xsl:with-param>
+				</xsl:call-template>
+			</xsl:if>
+			<xsl:if test="$request.class='javax.management.monitor.CounterMonitor'">
+				<xsl:call-template name="str">
+					<xsl:with-param name="id">monitor_create.operation.countermonitor</xsl:with-param>
+				</xsl:call-template>
+			</xsl:if>
+		</xsl:variable>
+		<table width="100%" cellpadding="0" cellspacing="0" border="0">
+			<tr>
+				<td width="100%" class="page_title"><xsl:value-of select="$monitor_type"/>
+				<xsl:call-template name="str">
+					<xsl:with-param name="id">monitor_create.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>
+				<td class="clearline">
+					<xsl:if test="@result='success'">
+						<xsl:call-template name="str">
+							<xsl:with-param name="id">monitor_create.operation.success</xsl:with-param>
+							<xsl:with-param name="p0"><xsl:value-of select="$monitor_type"/></xsl:with-param>
+						</xsl:call-template>
+					</xsl:if>
+					<xsl:if test="@result='error'">
+						<xsl:call-template name="str">
+							<xsl:with-param name="id">monitor_create.operation.error</xsl:with-param>
+							<xsl:with-param name="p0"><xsl:value-of select="$monitor_type"/></xsl:with-param>
+							<xsl:with-param name="p1"><xsl:value-of select="@errorMsg"/></xsl:with-param>
+						</xsl:call-template>
+					</xsl:if>
+				 </td>
+			</tr>
+			<xsl:if test="@result='success'">
+				<xsl:call-template name="mbeanview">
+					<xsl:with-param name="objectname"><xsl:value-of select="$request.objectname"/></xsl:with-param>
+					<xsl:with-param name="text">monitor_create.operation.mbeanview</xsl:with-param>
+				</xsl:call-template>
+			</xsl:if>
+			<xsl:if test="@result='error'">
+				<xsl:call-template name="serverview"/>
+			</xsl:if>
+		</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">timer</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/relation.xsl
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/relation.xsl?rev=423924&view=auto
==============================================================================
--- incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/relation.xsl (added)
+++ incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/relation.xsl Thu Jul 20 06:04:47 2006
@@ -0,0 +1,179 @@
+<?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: Bronwen Cassidy (shadow12@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">relation.title</xsl:param>
+  <xsl:include href="common.xsl"/>
+
+   <xsl:template match="relation-type-name" name="relationtypename">
+       <table width="100%" cellpadding="0" cellspacing="0" border="0">
+			<tr>
+				<td colspan="7" width="50%" class="mbeans">
+					<xsl:call-template name="str">
+						<xsl:with-param name="id">relation.typename.title</xsl:with-param>
+					</xsl:call-template>
+				</td>
+				<td colspan="7" width="50%" class="mbeans"><xsl:value-of select="@name"/></td>
+            </tr>
+			<tr class="darkline">
+				<td>
+					<div class="tableheader">
+						<xsl:call-template name="str">
+							<xsl:with-param name="id">relation.metadata.title</xsl:with-param>
+						</xsl:call-template>
+					</div>
+				</td>
+			</tr>
+			<tr><xsl:apply-templates select="./relation-meta-data"/></tr>
+			<tr class="darkline">
+				<td>
+					<div class="tableheader">
+						<xsl:call-template name="str">
+							<xsl:with-param name="id">relation.relationids.title</xsl:with-param>
+						</xsl:call-template>
+					</div>
+				</td>
+			</tr>
+			<tr>
+				<td class="domainline">
+					<xsl:apply-templates select="./relation-id"/>
+				</td>
+			</tr>
+		</table>
+  </xsl:template>
+
+  <xsl:template match="relation-meta-data" name="meta-data">
+   <table width="100%" cellpadding="0" cellspacing="0" border="0">
+      <xsl:variable name="position">
+		  <xsl:if test="(position() mod 2)=1">darkline</xsl:if>
+		  <xsl:if test="(position() mod 2)=0">clearline</xsl:if>
+	  </xsl:variable>
+      <tr width="100%" border="1">
+		<td class="{$position}"><b>
+			<xsl:call-template name="str">
+				<xsl:with-param name="id">relation.rolename.title</xsl:with-param>
+			</xsl:call-template></b>
+		</td><td><xsl:apply-templates select="./role-name"/></td>
+		<td class="{$position}"><b>
+			<xsl:call-template name="str">
+				<xsl:with-param name="id">relation.classname.title</xsl:with-param>
+			</xsl:call-template></b>
+		</td><td><xsl:apply-templates select="./mbean-classname"/></td>
+	  </tr>
+	  <tr  border="1">
+		<td class="{$position}"><b>
+			<xsl:call-template name="str">
+				<xsl:with-param name="id">relation.description.title</xsl:with-param>
+			</xsl:call-template></b>
+		</td><td><xsl:apply-templates select="./description"/></td>
+		<td class="{$position}"><b>
+			<xsl:call-template name="str">
+				<xsl:with-param name="id">relation.mindegree.title</xsl:with-param>
+			</xsl:call-template></b>
+		</td><td><xsl:apply-templates select="./min-degree"/></td>
+	  </tr>
+	  <tr border="1">
+		<td class="{$position}"><b>
+			<xsl:call-template name="str">
+				<xsl:with-param name="id">relation.maxdegree.title</xsl:with-param>
+			</xsl:call-template></b>
+		</td><td><xsl:apply-templates select="./max-degree"/></td>
+		<td class="{$position}"><b>
+			<xsl:call-template name="str">
+				<xsl:with-param name="id">relation.readable.title</xsl:with-param>
+			</xsl:call-template></b>
+		</td><td><xsl:apply-templates select="./is-readable"/></td>
+		<td class="{$position}"><b>
+			<xsl:call-template name="str">
+				<xsl:with-param name="id">relation.writable.title</xsl:with-param>
+			</xsl:call-template></b>
+		</td><td><xsl:apply-templates select="./is-writable"/></td>
+	  </tr>
+	</table>
+  </xsl:template>
+
+  <xsl:template match="role-name" name="roleName">
+      <xsl:value-of select="text()"/>
+  </xsl:template>
+
+  <xsl:template match="mbean-classname" name="classname">
+      <xsl:value-of select="text()"/>
+  </xsl:template>
+
+  <xsl:template match="description" name="description">
+      <xsl:value-of select="text()"/>
+  </xsl:template>
+
+  <xsl:template match="min-degree" name="minimum">
+      <xsl:value-of select="text()"/>
+  </xsl:template>
+
+  <xsl:template match="max-degree" name="maximum">
+      <xsl:value-of select="text()"/>
+  </xsl:template>
+
+  <xsl:template match="is-readable" name="reading">
+      <xsl:value-of select="text()"/>
+  </xsl:template>
+
+  <xsl:template match="is-writable" name="writing">
+      <xsl:value-of select="text()"/>
+  </xsl:template>
+
+  <xsl:template match="default" name="default">
+      <xsl:value-of select="text()"/>
+  </xsl:template>
+
+  <xsl:template match="relation-id" name="relationId">
+    <table width="100%" cellpadding="0" cellspacing="0" border="0">
+      <xsl:variable name="position">
+        <xsl:if test="(position() mod 2)=1">darkline</xsl:if>
+        <xsl:if test="(position() mod 2)=0">clearline</xsl:if>
+      </xsl:variable>
+    	<tr>
+        <td class="{$position}" align="justify">
+			<xsl:value-of select="text()"/>
+        </td>
+      </tr>
+	</table>
+  </xsl:template>
+
+  <xsl:template match="RelationServer">
+    <html>
+    	<xsl:call-template name="head"/>
+      <body>
+      	<xsl:call-template name="toprow"/>
+        <xsl:call-template name="tabs">
+        	<xsl:with-param name="selection">relation</xsl:with-param>
+        </xsl:call-template>
+        <table width="100%" cellpadding="0" cellspacing="0" border="0">
+          <tr>
+          	<td colspan="7" width="100%" align="center" class="fronttab">
+				<xsl:call-template name="str">
+					<xsl:with-param name="id">relation.inprogress</xsl:with-param>
+				</xsl:call-template>
+			</td>
+          </tr>
+        </table>
+        <table width="100%" cellpadding="0" cellspacing="0" border="0">
+		  <xsl:apply-templates select="./default"/>
+          <xsl:apply-templates select="./relation-type-name"/>
+        </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/server.xsl
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/server.xsl?rev=423924&view=auto
==============================================================================
--- incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/server.xsl (added)
+++ incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/server.xsl Thu Jul 20 06:04:47 2006
@@ -0,0 +1,89 @@
+<?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">server.title</xsl:param>
+	<xsl:include href="common.xsl"/>
+	<xsl:include href="xalan-ext.xsl"/>
+
+	<xsl:template name="mbean">
+		<xsl:for-each select="MBean">
+			<xsl:sort data-type="text" order="ascending" select="@objectname"/>
+				<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>
+				<tr class="{$classtype}" width="100%">
+					<td class="domainline"/>
+					<td width="35%" align="left">
+						<a href="mbean?objectname={$objectname}"><xsl:value-of select="@objectname"/></a>
+					</td>
+					<td width="20%" align="left">
+						<xsl:value-of select="@classname"/>
+					</td>
+					<td width="35%" align="left">
+						<xsl:value-of select="@description"/>
+					</td>
+					<td width="10%" align="right" class="{$classtype}" >
+						<a href="delete?objectname={$objectname}">
+							<xsl:call-template name="str">
+								<xsl:with-param name="id">server.unregister</xsl:with-param>
+							</xsl:call-template>
+						</a>
+					</td>
+				</tr>
+		</xsl:for-each>
+	</xsl:template>
+
+	<xsl:template match="Server">
+		<html>
+			<xsl:call-template name="head"/>
+			<body>
+				<xsl:call-template name="toprow"/>
+				<xsl:call-template name="tabs">
+					<xsl:with-param name="selection">server</xsl:with-param>
+				</xsl:call-template>
+				<table width="100%" cellpadding="0" cellspacing="0" border="0">
+					<tr class="fronttab">
+						<td >
+							<xsl:call-template name="str">
+								<xsl:with-param name="id">server.mbeans.title</xsl:with-param>
+							</xsl:call-template>
+						</td>
+						<form action="server">
+							<td align="right">
+								<xsl:call-template name="str">
+									<xsl:with-param name="id">server.filter.title</xsl:with-param>
+								</xsl:call-template>
+								<input type="text" name="querynames" value="*:*"/>
+								<input type="submit" value="query"/>
+							</td>
+						</form>
+					</tr>
+				</table>
+				<table width="100%" cellpadding="0" cellspacing="0" border="0">
+					<xsl:call-template name="mbean"/>
+				</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/serverbydomain.xsl
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/serverbydomain.xsl?rev=423924&view=auto
==============================================================================
--- incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/serverbydomain.xsl (added)
+++ incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/serverbydomain.xsl Thu Jul 20 06:04:47 2006
@@ -0,0 +1,134 @@
+<?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">serverbydomain.title</xsl:param>
+
+	<!-- Invoked when a query error is produced -->
+	<xsl:template match="Domain" name="error">
+		<xsl:for-each select="Exception">
+			<tr>
+				<td class="serverbydomain_domainline" colspan="5">
+					<xsl:call-template name="str">
+						<xsl:with-param name="id">serverbydomain.error.query</xsl:with-param>
+						<xsl:with-param name="p0">
+								<xsl:value-of select="@errorMsg"/>
+							</xsl:with-param>
+					</xsl:call-template>
+				</td>
+			</tr>
+		</xsl:for-each>
+	</xsl:template>
+
+	<!-- Invoked to display each domain -->
+	<xsl:template match="Domain" name="domain">
+		<xsl:for-each select="Domain">
+			<xsl:sort data-type="text" order="ascending" select="@name"/>
+			<tr>
+				<td class="serverbydomain_domainline" colspan="5">
+						<xsl:call-template name="str">
+							<xsl:with-param name="id">serverbydomain.domain.label</xsl:with-param>
+							<xsl:with-param name="p0">
+								<xsl:value-of select="@name"/>
+							</xsl:with-param>
+						</xsl:call-template>
+				</td>
+				<xsl:call-template name="mbean"/>
+			</tr>
+		</xsl:for-each>
+	</xsl:template>
+
+	<!-- invoked for each mbean -->
+	<xsl:template match="MBean" name="mbean">
+		<xsl:for-each select="MBean">
+			<xsl:sort data-type="text" order="ascending" select="@objectname"/>
+				<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>
+				<tr class="{$classtype}" width="100%">
+					<td width="35%" align="left" class="serverbydomain_row">
+						<a href="mbean?objectname={$objectname}"><xsl:value-of select="@objectname"/></a>
+					</td>
+					<td width="20%" align="left" class="serverbydomain_row">
+						<p><xsl:value-of select="@classname"/></p>
+					</td>
+					<td width="35%" align="left" class="serverbydomain_row">
+						<p><xsl:value-of select="@description"/></p>
+					</td>
+					<td width="10%" align="right" class="serverbydomain_row">
+						<p>
+						<a href="delete?objectname={$objectname}">
+						<xsl:call-template name="str">
+							<xsl:with-param name="id">serverbydomain.mbean.unregister</xsl:with-param>
+						</xsl:call-template>
+						</a></p>
+					</td>
+				</tr>
+		</xsl:for-each>
+	</xsl:template>
+
+	<!-- Main template -->
+	<xsl:template match="Server">
+		<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">server</xsl:with-param>
+						</xsl:call-template>
+						<xsl:variable name="query">
+							<xsl:call-template name="str">
+								<xsl:with-param name="id">serverbydomain.server.query</xsl:with-param>
+							</xsl:call-template>
+						</xsl:variable>
+							<table width="100%" cellpadding="0" cellspacing="0" border="0">
+
+								<tr>
+									<td class="page_title">
+										<xsl:call-template name="str">
+											<xsl:with-param name="id">serverbydomain.server.title</xsl:with-param>
+										</xsl:call-template>
+									</td>
+									<form action="serverbydomain">
+									<td align="right" class="page_title">
+										<xsl:call-template name="str"><xsl:with-param name="id">serverbydomain.server.filter</xsl:with-param></xsl:call-template><input type="text" name="querynames" value="*:*"/><input type="submit" value="{$query}"/>
+									</td>
+									</form>
+								</tr>
+							</table>
+							<table width="100%" cellpadding="0" cellspacing="0" border="0">
+								<xsl:call-template name="domain"/>
+								<xsl:call-template name="error"/>
+							</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/setattribute.xsl
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/setattribute.xsl?rev=423924&view=auto
==============================================================================
--- incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/setattribute.xsl (added)
+++ incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/setattribute.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">setattribute.title</xsl:param>
+	<xsl:include href="common.xsl"/>
+
+	<!-- Request parameters -->
+	<xsl:param name="request.objectname"/>
+	<xsl:param name="request.attribute"/>
+	<xsl:param name="request.value"/>
+
+	<xsl:template name="operation">
+		<xsl:for-each select="Operation">
+			<table width="100%" cellpadding="0" cellspacing="0" border="0">
+				<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>
+				<tr>
+					<td width="100%" class="fronttab">
+						<xsl:call-template name="str">
+							<xsl:with-param name="id">setattribute.operation.title</xsl:with-param>
+							<xsl:with-param name="p0"><xsl:value-of select="$request.attribute"/></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="{$classtype}">
+						<xsl:if test="@result='success'">
+							<xsl:call-template name="str">
+								<xsl:with-param name="id">setattribute.operation.success</xsl:with-param>
+								<xsl:with-param name="p0"><xsl:value-of select="$request.attribute"/></xsl:with-param>
+								<xsl:with-param name="p1"><xsl:value-of select="$request.value"/></xsl:with-param>
+							</xsl:call-template>
+						</xsl:if>
+						<xsl:if test="@result='error'">
+							<xsl:call-template name="str">
+								<xsl:with-param name="id">setattribute.operation.error</xsl:with-param>
+								<xsl:with-param name="p0"><xsl:value-of select="@errorMessage"/></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>
+
+	<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/setattributes.xsl
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/setattributes.xsl?rev=423924&view=auto
==============================================================================
--- incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/setattributes.xsl (added)
+++ incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/setattributes.xsl Thu Jul 20 06:04:47 2006
@@ -0,0 +1,89 @@
+<?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">setattributes.title</xsl:param>
+	<xsl:include href="common.xsl"/>
+
+	<!-- Request parameters -->
+	<xsl:param name="request.objectname"/>
+	<xsl:param name="request.attribute"/>
+	<xsl:param name="request.value"/>
+
+	<xsl:template name="operation">
+		<xsl:for-each select="Operation">
+			<table width="100%" cellpadding="0" cellspacing="0" border="0">
+
+				<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>
+				<tr>
+					<td width="100%" class="page_title">
+					<xsl:call-template name="str">
+						<xsl:with-param name="id">setattributes.operation.title</xsl:with-param>
+						<xsl:with-param name="p0"><xsl:value-of select="$request.objectname"/></xsl:with-param>
+					</xsl:call-template>
+
+					</td>
+				</tr>
+					<xsl:for-each select="//Attribute">
+					<xsl:if test="@result='success'">
+					<tr class="{$classtype}">
+						<td>
+							<!-- This would be better with a 2 param replacement -->
+							<xsl:call-template name="str">
+								<xsl:with-param name="id">setattributes.operation.success</xsl:with-param>
+								<xsl:with-param name="p0"><xsl:value-of select="@attribute"/></xsl:with-param>
+								<xsl:with-param name="p1"><xsl:value-of select="@value"/></xsl:with-param>
+							</xsl:call-template>
+						</td>
+					</tr>
+					</xsl:if>
+				<xsl:if test="@result='error'">
+					<tr  class="{$classtype}">
+						<td>
+							<xsl:call-template name="str">
+								<xsl:with-param name="id">setattributes.operation.error</xsl:with-param>
+								<xsl:with-param name="p0"><xsl:value-of select="@attribute"/></xsl:with-param>
+								<xsl:with-param name="p1"><xsl:value-of select="@errorMsg"/></xsl:with-param>
+							</xsl:call-template>
+						</td>
+					</tr>
+				</xsl:if>
+				</xsl:for-each>
+				<xsl:call-template name="mbeanview">
+					<xsl:with-param name="objectname" select="$request.objectname"/>
+				</xsl:call-template>
+			</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/strings_en.xml
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/strings_en.xml?rev=423924&view=auto
==============================================================================
--- incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/strings_en.xml (added)
+++ incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/strings_en.xml Thu Jul 20 06:04:47 2006
@@ -0,0 +1,223 @@
+<?xml version="1.0"?>
+<strings>
+	<str id="none"></str>
+	<str id="common.title">MX4J/Http Adaptor</str>
+	<str id="common.subtitle">JMX Management Console</str>
+	<str id="common.tabs.serverview">Server view</str>
+	<str id="common.tabs.mbeanview">MBean view</str>
+	<str id="common.tabs.timerview">Timers</str>
+	<str id="common.tabs.monitorview">Monitors</str>
+	<str id="common.tabs.relationview">Relations</str>
+	<str id="common.tabs.mletview">MLet</str>
+	<str id="common.tabs.about">About</str>
+	<str id="common.serverview.return">Return to server view</str>
+	<str id="common.bottom.banner">Built using {0} HttpAdaptor</str>
+	<str id="common.mbeanview.return">Return to MBean view</str>
+	<str id="common.logo">MX4J logo</str>
+	<str id="common.logo.gif">logo.gif</str>
+	<str id="common.logo.width">100</str>
+	<str id="common.logo.height">50</str>
+	<str id="common.site">mx4j.sourceforge.net</str>
+
+	<str id="serverbydomain.title">MX4J - Agent View</str>
+	<str id="serverbydomain.error.query">Exception during query: {0}</str>
+	<str id="serverbydomain.domain.label">Domain: {0}</str>
+	<str id="serverbydomain.server.title">MBean By Domain:</str>
+	<str id="serverbydomain.server.filter">Filter:</str>
+	<str id="serverbydomain.server.query">Query</str>
+	<str id="serverbydomain.mbean.unregister">Unregister</str>
+
+	<str id="emptymbean.title">MBean - View</str>
+	<str id="emptymbean.querycontructors">Query constructors for class:</str>
+	<str id="emptymbean.query">query</str>
+
+	<str id="mbean.title">MX4J - MBean View</str>
+	<str id="mbean.parameters.unknown">Unknown type</str>
+	<str id="mbean.operations.title">Operations</str>
+	<str id="mbean.operations.name">Name</str>
+	<str id="mbean.operations.returntype">Return type</str>
+	<str id="mbean.operations.description">Description</str>
+	<str id="mbean.operations.parameter">Parameters</str>
+	<str id="mbean.operations.parameterid">id</str>
+	<str id="mbean.operations.parametername">Name</str>
+	<str id="mbean.operations.parameterdescription">Description</str>
+	<str id="mbean.operations.parameterclass">Class</str>
+	<str id="mbean.operations.invoke">Invoke</str>
+	<str id="mbean.constructors.class">Class</str>
+	<str id="mbean.constructors.objectname">ObjectName: </str>
+	<str id="mbean.constructors.description">Description</str>
+	<str id="mbean.constructors.parameter">Parameters</str>
+	<str id="mbean.constructors.parameterid">id</str>
+	<str id="mbean.constructors.parametername">Name</str>
+	<str id="mbean.constructors.parameterdescription">Description</str>
+	<str id="mbean.constructors.parameterclass">Class</str>
+	<str id="mbean.constructors.create">Create new</str>
+	<str id="mbean.mbean.title">MBean {0}</str>
+	<str id="mbean.mbean.description">Description {0}</str>
+	<str id="mbean.mbean.attributes">Attributes</str>
+	<str id="mbean.mbean.constructors">Constructors</str>
+
+	<str id="mbean_attributes.attribute.name">Name</str>
+	<str id="mbean_attributes.attribute.description">Description</str>
+	<str id="mbean_attributes.attribute.type">Type</str>
+	<str id="mbean_attributes.attribute.value">Value</str>
+	<str id="mbean_attributes.attribute.newvalue">New Value</str>
+	<str id="mbean_attributes.attribute.arrayof">Array of {0}</str>
+	<str id="mbean_attributes.attribute.setall">Set all</str>
+	<str id="mbean_attributes.RO.readonly">Read-only attribute</str>
+	<str id="mbean_attributes.WO.readonly">Write-only attribute</str>
+	<str id="mbean_attributes.submit.set">set</str>
+	<str id="mbean_attributes.form.unknowntype">Unknown type</str>
+	<str id="mbean_attributes.array.view">View array</str>
+	<str id="mbean_attributes.map.view">View map</str>
+	<str id="mbean_attributes.collection.view">View collection</str>
+	<str id="mbean_attributes.array.null">Array is null</str>
+	<str id="mbean_attributes.map.null">Map is null</str>
+	<str id="mbean_attributes.collection.null">Collection is null</str>
+
+	<str id="setattributes.title">MX4J - MBean View</str>
+	<str id="setattributes.operation.title">MBean operation: set attributes on MBean {0}</str>
+	<str id="setattributes.operation.success">Attribute {0} set to {1} </str>
+	<str id="setattributes.operation.error">Exception during set attribute {0}, message: {1} </str>
+
+	<str id="error.title">MX4J - Exception</str>
+	<str id="error.httpexception.title">Error during request</str>
+	<str id="error.httpexception.code">Code: {0}</str>
+	<str id="error.httpexception.message">Message: {0}</str>
+
+	<str id="constructors.constructors.objectnameinput">ObjectName:</str>
+	<str id="constructors.constructors.createnew">Create new</str>
+	<str id="constructors.constructors.intro">Constructor for class {0}</str>
+	<str id="constructors.title">MX4J - MBean Constructor's View</str>
+	<str id="constructors.main.title">Constructors for class {0}</str>
+	<str id="constructors.error.exception">Exception: {0}</str>
+	<str id="constructors.parameters.title">Parameters</str>
+	<str id="constructors.parameters.id">id</str>
+	<str id="constructors.parameters.type">type</str>
+	<str id="constructors.parameters.value">value</str>
+	<str id="constructors.parameters.unknowntype">Unkown type</str>
+
+	<str id="create.title">MX4J - MBean View</str>
+	<str id="create.operation.success">MBean successfully created</str>
+	<str id="create.operation.error">Error during MBean creation, message: {0}</str>
+	<str id="create.operation.title">MBean operation: create MBean of class {0} and object name {1}</str>
+
+	<str id="delete.title">MX4J - MBean View</str>
+	<str id="delete.operation.title">MBean delete, objectname {0}</str>
+	<str id="delete.operation.success">MBean successfully deleted</str>
+	<str id="delete.operation.error">Error during MBean deletion, message: {0}</str>
+
+	<str id="timer.title">MX4J - Timer Service</str>
+	<str id="timer.main.title">Timers by Domain:</str>
+	<str id="timer.main.createlabel">ObjectName:</str>
+	<str id="timer.main.createbutton">New timer</str>
+	<str id="timer.mbean.unregister">Unregister</str>
+	<str id="timer.domain.title">Timers for domain: {0}</str>
+	<str id="timer.domain.objectname">ObjectName</str>
+
+	<str id="timer_create.title">MX4J - Timer Creation</str>
+	<str id="timer_create.operation.title">Timer creation with object name {0}</str>
+	<str id="timer_create.operation.success">Timer created</str>
+	<str id="timer_create.operation.error">Exception during timer creation, message: {0}</str>
+	<str id="timer_create.operation.mbeanview">Configure timer</str>
+
+	<str id="viewarray.title">MX4J - Array View</str>
+	<str id="viewarray.main.title">MBean {0}</str>
+	<str id="viewarray.main.arraytitle">Array attribute {0} of type {1}</str>
+	<str id="viewarray.main.index">Index</str>
+	<str id="viewarray.main.value">Value</str>
+	<str id="viewarray.main.navigation.first">first</str>
+	<str id="viewarray.main.navigation.previous">previous</str>
+	<str id="viewarray.main.navigation.next">next</str>
+	<str id="viewarray.main.navigation.last">last</str>
+
+	<str id="viewcollection.title">MX4J - Collection View</str>
+	<str id="viewcollection.main.title">MBean {0}</str>
+	<str id="viewcollection.main.viewcollectiontitle">Collection of class {0} on attribute {1}</str>
+	<str id="viewcollection.main.index">Index</str>
+	<str id="viewcollection.main.valueclass">Value class</str>
+	<str id="viewcollection.main.value">Value</str>
+	<str id="viewcollection.main.navigation.first">first</str>
+	<str id="viewcollection.main.navigation.previous">previous</str>
+	<str id="viewcollection.main.navigation.next">next</str>
+	<str id="viewcollection.main.navigation.last">last</str>
+
+	<str id="viewmap.title">MX4J - Map View</str>
+	<str id="viewmap.main.title">MBean {0}</str>
+	<str id="viewmap.main.viewmaptitle">Map of class {0} on attribute {1}</str>
+	<str id="viewmap.main.key">Key</str>
+	<str id="viewmap.main.keyclass">Key class</str>
+	<str id="viewmap.main.valueclass">Value class</str>
+	<str id="viewmap.main.value">Value</str>
+	<str id="viewmap.main.navigation.first">first</str>
+	<str id="viewmap.main.navigation.previous">previous</str>
+	<str id="viewmap.main.navigation.next">next</str>
+	<str id="viewmap.main.navigation.last">last</str>
+
+	<str id="monitor.title">MX4J - Monitor Service</str>
+	<str id="monitor.mbean.unregister">Unregister</str>
+	<str id="monitor.main.title">Monitors By Domain</str>
+	<str id="monitor.main.createstring.label">ObjectName:</str>
+	<str id="monitor.main.createstring.button">New StringMonitor</str>
+	<str id="monitor.main.creategauge.label">ObjectName:</str>
+	<str id="monitor.main.creategauge.button">New GaugeMonitor</str>
+	<str id="monitor.main.createcounter.label">ObjectName:</str>
+	<str id="monitor.main.createcounter.button">New CounterMonitor</str>
+
+	<str id="monitor_create.title">MX4J - Monitor creation</str>
+	<str id="monitor_create.operation.title"> creation with object name {0}</str>
+	<str id="monitor_create.operation.success">Monitor type {0} successfully created</str>
+	<str id="monitor_create.operation.error">Exception during {0} creation, mesage: {1}</str>
+	<str id="monitor_create.operation.mbeanview">Configure Monitor</str>
+	<str id="monitor_create.operation.stringmonitor">StringMonitor</str>
+	<str id="monitor_create.operation.gaugemonitor">GaugeMonitor</str>
+	<str id="monitor_create.operation.countermonitor">CounterMonitor</str>
+
+	<str id="mlet.title">MX4J - MLet Service</str>
+	<str id="mlet.mbean.unregister">MX4J - MLet Service</str>
+	<str id="mlet.main.title">Mlet: (Not yet implemented)</str>
+
+	<str id="invoke.title">MX4J - MBean View</str>
+	<str id="invoke.operation.title">MBean operation: invoke method {0} on MBean {1}</str>
+	<str id="invoke.operation.success">Invocation successful</str>
+	<str id="invoke.operation.success.result">Result value: <pre>{0}</pre></str>
+	<str id="invoke.operation.success.noresult">No result</str>
+	<str id="invoke.operation.success.error">Error during MBean operation invocation<br/>Message: {0}</str>
+
+	<str id="about.title">MX4J - About</str>
+	<str id="about.main.title">{0} - HttpAdaptor</str>
+	<str id="about.main.url">http://mx4j.sourceforge.net</str>
+	<str id="about.main.url2">http://www.javasoft.com/jmx</str>
+	<str id="about.main.line1">Built based on the {0} specification</str>
+	<str id="about.main.implementation">JMX Implementation:</str>
+	<str id="about.main.implementationversion">Implementation Version:</str>
+	<str id="about.main.serverid">MBeanServer ID:</str>
+
+	<!-- relation service strings -->
+	<str id="relation.title">MX4J - Relation Service</str>
+	<str id="relation.typename.title">RelationTypeName:</str>
+	<str id="relation.metadata.title">Relation Type metaData:</str>
+	<str id="relation.relationids.title">RelationIds:</str>
+	<str id="relation.rolename.title">Role Name:</str>
+	<str id="relation.classname.title">MBeanClass:</str>
+	<str id="relation.description.title">Description:</str>
+	<str id="relation.mindegree.title">Min Degree:</str>
+	<str id="relation.maxdegree.title">Max Degree:</str>
+	<str id="relation.readable.title">Readable:</str>
+	<str id="relation.writable.title">Writable:</str>
+	<str id="relation.paramname">relation</str>
+	<str id="relation.inprogress">Relation Service: (In Progress)</str>
+
+	<!--MBean Server strings -->
+	<str id="server.title">MX4J - Agent View</str>
+	<str id="server.unregister">Unregister</str>
+	<str id="server.mbeans.title">MBeans:</str>
+	<str id="server.filter.title">Filter:</str>
+
+	<!-- Set attribute stylesheet, to be deprecated -->
+	<str id="setattribute.title">MX4J - MBean View</str>
+	<str id="setattribute.operation.title">MBean operation: set attribute {0} on MBean {1}</str>
+	<str id="setattribute.operation.success">Attribute {0} set to {1}</str>
+	<str id="setattribute.operation.error">Error during set attribute, message: {0}</str>
+
+</strings>

Added: incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/stylesheet.css
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/stylesheet.css?rev=423924&view=auto
==============================================================================
--- incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/stylesheet.css (added)
+++ incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/stylesheet.css Thu Jul 20 06:04:47 2006
@@ -0,0 +1,436 @@
+/*
+
+ * 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
+
+ * Revision: $Revision: 1.1.1.1 $
+
+ */
+
+
+
+body {
+
+	background: white;
+
+	color: black;
+
+	font-family: tahoma,verdana,helvetica,arial,sans-serif;
+
+	margin-top: 5px;
+
+	margin-left: 5px;
+
+	margin-right: 5px;
+
+	margin-bottom: 5px;
+
+}
+
+
+
+/* Footer class */
+
+div.footer {
+
+	font-weight: bold;
+
+	text-align: center;
+
+}
+
+
+
+/* Tabs styles */
+
+td.fronttab {
+
+	background: rgb(220,220,220);
+
+	color: black;
+
+	padding-left: 10px;
+
+	padding-right: 10px;
+
+	padding-bottom: 3px;
+
+	font-size: small;
+
+}
+
+
+
+td.backtab {
+
+	background: rgb(240,240,240);
+
+	color: black;
+
+	height: 25px;
+
+	padding-left: 10px;
+
+	padding-right: 10px;
+
+	font-size: small;
+
+}
+
+
+
+a.tabs {
+
+	color: black;
+
+	text-decoration: none;
+
+	font-size: small;
+
+}
+
+/* End of tabs styles */
+
+
+
+/* Header styles */
+
+td.darker {
+
+	background: rgb(57,128,144);
+
+	height: 18px;
+
+}
+
+
+
+td.topheading {
+
+	background: rgb(183,187,184);
+
+	color: black;
+
+	font-weight: bold;
+
+	padding-left: 10px;
+
+}
+
+/* End of Header styles */
+
+
+
+td.domainline {
+
+	background: rgb(220,220,220);
+
+	color: black;
+
+	padding-left: 10px;
+
+}
+
+
+
+td.page_title {
+
+	background: rgb(220,220,220);
+
+	color: black;
+
+	padding-left: 10px;
+
+	padding-right: 10px;
+
+	padding-top: 2px;
+
+	padding-bottom: 2px;
+
+	font-weight: bold;
+
+}
+
+
+
+div.subtitle {
+
+	font-size: smaller;
+
+}
+
+
+
+/* Server by domain styles */
+
+td.serverbydomain_domainline {
+
+	background: rgb(200,200,200);
+
+	color: black;
+
+	padding-left: 10px;
+
+	font-weight: bold;
+
+}
+
+
+
+tr.clearline {
+
+	background: rgb(255,255,255);
+
+	color: black;
+
+	padding-left: 10px;
+
+	padding-right: 10px;
+
+	padding-top: 2px;
+
+	padding-bottom: 2px;
+
+}
+
+
+
+tr.darkline {
+
+	background: rgb(240,240,240);
+
+	color: black;
+
+	padding-left: 10px;
+
+	padding-right: 10px;
+
+}
+
+
+
+td.serverbydomain_row {
+
+	font-size: x-small;
+
+	padding-left: 10px;
+
+}
+
+
+
+/* MBean section title */
+
+td.mbeans {
+
+	background: rgb(183,187,184);
+
+}
+
+
+
+p.darklinebottom {
+
+	background: rgb(240,240,240);
+
+	color: black;
+
+	height: 20px;
+
+	padding-left: 10px;
+
+	font-weight: bold;
+
+}
+
+
+
+div.tableheader {
+
+	font-weight: bold;
+
+	padding-top: 2px;
+
+	padding-bottom: 2px;
+
+	font-size: small
+
+}
+
+
+
+td.mbean_row {
+
+	font-size: x-small;
+
+	padding-left: 1px;
+
+}
+
+
+
+td.attributes_setall {
+
+	padding-right: 20px;
+
+	padding-top: 5px;
+
+	padding-bottom: 5px;
+
+}
+
+
+
+/* MBean section title */
+
+td.mbeans {
+
+	background: rgb(183,187,184);
+
+	color: black;
+
+	height: 20px;
+
+	padding-left: 10px;
+
+	padding-right: 10px;
+
+	font-weight: bold;
+
+}
+
+
+
+div.tableheader {
+
+	font-weight: bold;
+
+	padding-top: 2px;
+
+	padding-bottom: 2px;
+
+	font-size: small
+
+}
+
+
+
+td.mbean_row {
+
+	font-size: x-small;
+
+	padding-left: 1px;
+
+}
+
+
+
+td.aggregationrow {
+
+	font-size: small;
+
+	padding-left: 1px;
+
+}
+
+
+
+td.constructorrow {
+
+	font-size: small;
+
+	padding-left: 1px;
+
+}
+
+
+
+td.attributes_setall {
+
+	padding-right: 20px;
+
+	padding-top: 5px;
+
+	padding-bottom: 5px;
+
+}
+
+
+
+tr.about {
+
+	background: rgb(220,220,220);
+
+}
+
+
+
+h1.about {
+
+	padding-left: 20px;
+
+	padding-right: 20px;
+
+	padding-top: 20px;
+
+	padding-bottom: 20px;
+
+	font-size: xx-large;
+
+	background: rgb(220,220,220);
+
+	color: black;
+
+}
+
+
+
+h2.about {
+
+	padding-left: 20px;
+
+	padding-right: 20px;
+
+	padding-top: 15px;
+
+	padding-bottom: 15px;
+
+	font-size: x-large;
+
+	background: rgb(220,220,220);
+
+	color: black;
+
+}
+
+
+
+h3.about {
+
+	padding-left: 20px;
+
+	padding-right: 20px;
+
+	padding-top: 15px;
+
+	padding-bottom: 15px;
+
+	font-size: large;
+
+	background: rgb(220,220,220);
+
+	color: black;
+
+}
+
+
+

Added: incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/timer.xsl
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/timer.xsl?rev=423924&view=auto
==============================================================================
--- incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/timer.xsl (added)
+++ incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/timer.xsl Thu Jul 20 06:04:47 2006
@@ -0,0 +1,121 @@
+<?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" xmlns:xalan="http://xml.apache.org/xslt">
+	<xsl:output method="html" indent="yes" encoding="UTF-8" xalan:indent-amount="4"/>
+
+	<xsl:param name="html.stylesheet">stylesheet.css</xsl:param>
+	<xsl:param name="html.stylesheet.type">text/css</xsl:param>
+	<xsl:param name="head.title">timer.title</xsl:param>
+	<xsl:include href="common.xsl"/>
+
+	<xsl:template name="domain">
+		<xsl:for-each select="Domain[MBean]">
+			<tr>
+				<td class="serverbydomain_domainline">
+					<xsl:call-template name="str">
+						<xsl:with-param name="id">timer.domain.title</xsl:with-param>
+						<xsl:with-param name="p0">
+							<xsl:value-of select="@name"/>
+						</xsl:with-param>
+					</xsl:call-template>
+				</td>
+			</tr>
+			<tr>
+				<td>
+					<div class="tableheader">
+						<xsl:call-template name="str">
+							<xsl:with-param name="id">timer.domain.objectname</xsl:with-param>
+						</xsl:call-template>
+					</div>
+				</td>
+			</tr>
+			<tr>
+				<td>
+					<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">
+			<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>
+			<tr class="{$classtype}">
+				<xsl:variable name="objectname">
+					<xsl:call-template name="uri-encode">
+						<xsl:with-param name="uri" select="@objectname"/>
+					</xsl:call-template>
+				</xsl:variable>
+				<td class="mbean_row">
+					<a href="mbean?objectname={$objectname}"><xsl:value-of select="@objectname"/></a>
+				</td>
+				<td align="right" class="mbean_row">
+					<a href="delete?objectname={$objectname}">
+						<xsl:call-template name="str">
+							<xsl:with-param name="id">timer.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">timer</xsl:with-param>
+				</xsl:call-template>
+				<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">timer.main.title</xsl:with-param>
+							</xsl:call-template>
+						</td>
+					</tr>
+					<tr class="fronttab">
+						<form action="create">
+							<td align="right">
+								<xsl:call-template name="str">
+									<xsl:with-param name="id">timer.main.createlabel</xsl:with-param>
+								</xsl:call-template>
+								<xsl:variable name="str.createbutton">
+									<xsl:call-template name="str">
+										<xsl:with-param name="id">timer.main.createbutton</xsl:with-param>
+									</xsl:call-template>
+								</xsl:variable>
+								<input type="input" name="objectname"/>
+								<input type="hidden" name="template" value="timer_create"/>
+								<input type="hidden" name="class" value="javax.management.timer.Timer"/>
+								<input type="submit" value="{$str.createbutton}"/>
+							</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>
+

Added: incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/timer_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/timer_create.xsl?rev=423924&view=auto
==============================================================================
--- incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/timer_create.xsl (added)
+++ incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/timer_create.xsl Thu Jul 20 06:04:47 2006
@@ -0,0 +1,82 @@
+<?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">timer_create.title</xsl:param>
+
+	<!-- Request parameters -->
+	<xsl:param name="request.objectname"/>
+	<xsl:param name="request.class"/>
+
+	<xsl:include href="common.xsl"/>
+
+	<!-- Operation 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">timer_create.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>
+				<td class="clearline">
+					<xsl:if test="@result='success'">
+						<xsl:call-template name="str">
+							<xsl:with-param name="id">timer_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">timer_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:if test="@result='success'">
+					<xsl:call-template name="mbeanview">
+						<xsl:with-param name="objectname"><xsl:value-of select="$request.objectname"/></xsl:with-param>
+						<xsl:with-param name="text">timer_create.operation.mbeanview</xsl:with-param>
+					</xsl:call-template>
+				</xsl:if>
+				<xsl:if test="@result='error'">
+					<xsl:call-template name="serverview"/>
+				</xsl:if>
+		</table>
+		</xsl:for-each>
+	</xsl:template>
+
+	<!-- Main 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">timer</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/viewarray.xsl
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/viewarray.xsl?rev=423924&view=auto
==============================================================================
--- incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/viewarray.xsl (added)
+++ incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/viewarray.xsl Thu Jul 20 06:04:47 2006
@@ -0,0 +1,110 @@
+<?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">viewarray.title</xsl:param>
+	<xsl:param name="request.step">30</xsl:param>
+	<xsl:param name="request.start">0</xsl:param>
+	<xsl:param name="request.objectname"/>
+	<xsl:param name="request.attribute"/>
+	<xsl:param name="request.format"/>
+	<xsl:param name="request.template"/>
+
+	<xsl:include href="common.xsl"/>
+	<xsl:include href="mbean_attributes.xsl"/>
+
+	<!-- 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>
+				<table width="100%" cellpadding="0" cellspacing="0" border="0">
+					<tr>
+						<td colspan="2" class="page_title">
+							<xsl:call-template name="str">
+								<xsl:with-param name="id">viewarray.main.title</xsl:with-param>
+								<xsl:with-param name="p0"><xsl:value-of select="MBean/@objectname"/></xsl:with-param>
+							</xsl:call-template>
+						</td>
+					</tr>
+					<tr>
+						<td colspan="2" class="fronttab">
+							<xsl:call-template name="str">
+								<xsl:with-param name="id">viewarray.main.arraytitle</xsl:with-param>
+								<xsl:with-param name="p0"><xsl:value-of select="MBean/Attribute/@attribute"/></xsl:with-param>
+								<xsl:with-param name="p1"><xsl:value-of select="substring-before(substring-after(MBean/Attribute/@classname, '[L'), ';')"/></xsl:with-param>
+							</xsl:call-template>
+						</td>
+					</tr>
+					<tr>
+						<td class="fronttab">
+							<div class="tableheader">
+								<xsl:call-template name="str">
+									<xsl:with-param name="id">viewarray.main.index</xsl:with-param>
+								</xsl:call-template>
+							</div>
+						</td>
+						<td class="fronttab">
+							<div class="tableheader">
+								<xsl:call-template name="str">
+									<xsl:with-param name="id">viewarray.main.value</xsl:with-param>
+								</xsl:call-template>
+							</div>
+						</td>
+					</tr>
+					<xsl:for-each select="MBean/Attribute/Array/Element">
+						<xsl:sort order="ascending" select="@index"/>
+						<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="aggregationrow"><xsl:value-of select="@index"/></td>
+							<td class="aggregationrow">
+								<xsl:call-template name="renderobject">
+									<xsl:with-param name="objectclass" select="../@componentclass"/>
+									<xsl:with-param name="objectvalue" select="@element"/>
+								</xsl:call-template>
+							</td>
+						</tr>
+					</xsl:for-each>
+
+					<xsl:variable name="url">getattribute?objectname=<xsl:call-template name="uri-encode"><xsl:with-param name="uri"><xsl:value-of select="$request.objectname"/></xsl:with-param></xsl:call-template>&amp;attribute=<xsl:value-of select="$request.attribute"/>&amp;format=array&amp;template=viewarray&amp;locale=<xsl:value-of select="$request.locale"/></xsl:variable>
+					<xsl:call-template name="aggregation-navigation">
+						<xsl:with-param name="url" select="$url"/>
+						<xsl:with-param name="total" select="count(MBean/Attribute/Array/Element)"/>
+						<xsl:with-param name="start" select="$request.start"/>
+						<xsl:with-param name="step" select="$request.step"/>
+						<xsl:with-param name="str.prefix">viewarray.main</xsl:with-param>
+					</xsl:call-template>
+
+					<xsl:call-template name="mbeanview">
+						<xsl:with-param name="objectname" select="MBean/@objectname"/>
+						<xsl:with-param name="colspan" select="4"/>
+					</xsl:call-template>
+
+				</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/viewcollection.xsl
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/viewcollection.xsl?rev=423924&view=auto
==============================================================================
--- incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/viewcollection.xsl (added)
+++ incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/viewcollection.xsl Thu Jul 20 06:04:47 2006
@@ -0,0 +1,119 @@
+<?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">viewcollection.title</xsl:param>
+	<xsl:param name="request.step">30</xsl:param>
+	<xsl:param name="request.start">0</xsl:param>
+	<xsl:param name="request.objectname"/>
+	<xsl:param name="request.attribute"/>
+	<xsl:param name="request.format"/>
+	<xsl:param name="request.template"/>
+	<xsl:include href="common.xsl"/>
+	<xsl:include href="mbean_attributes.xsl"/>
+
+	<!-- 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>
+				<table width="100%" cellpadding="0" cellspacing="0" border="0">
+					<tr>
+						<td colspan="3" class="page_title">
+							<xsl:call-template name="str">
+								<xsl:with-param name="id">viewcollection.main.title</xsl:with-param>
+								<xsl:with-param name="p0"><xsl:value-of select="MBean/@objectname"/></xsl:with-param>
+							</xsl:call-template>
+						</td>
+					</tr>
+					<tr>
+						<td colspan="3" class="fronttab">
+							<xsl:call-template name="str">
+								<xsl:with-param name="id">viewcollection.main.viewcollectiontitle</xsl:with-param>
+								<xsl:with-param name="p0"><xsl:value-of select="MBean/Attribute/@classname"/></xsl:with-param>
+								<xsl:with-param name="p1"><xsl:value-of select="MBean/Attribute/@name"/></xsl:with-param>
+							</xsl:call-template>
+						</td>
+					</tr>
+					<tr>
+						<td class="fronttab">
+							<div class="tableheader">
+								<xsl:call-template name="str">
+									<xsl:with-param name="id">viewcollection.main.index</xsl:with-param>
+								</xsl:call-template>
+							</div>
+						</td>
+						<td class="fronttab">
+							<div class="tableheader">
+								<xsl:call-template name="str">
+									<xsl:with-param name="id">viewcollection.main.value</xsl:with-param>
+								</xsl:call-template>
+							</div>
+						</td>
+						<td class="fronttab">
+							<div class="tableheader">
+								<xsl:call-template name="str">
+									<xsl:with-param name="id">viewcollection.main.valueclass</xsl:with-param>
+								</xsl:call-template>
+							</div>
+						</td>
+					</tr>
+
+					<xsl:for-each select="MBean/Attribute/Collection/Element">
+						<xsl:sort order="ascending" select="@index"/>
+						<xsl:if test="position()&lt;($request.step+$request.start) and position()&gt;$request.start">
+							<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="aggregationrow"><xsl:value-of select="@index"/></td>
+								<td class="aggregationrow">
+									<xsl:call-template name="renderobject">
+										<xsl:with-param name="objectclass" select="@elementclass"/>
+										<xsl:with-param name="objectvalue" select="@element"/>
+									</xsl:call-template>
+								</td>
+								<td class="aggregationrow"><xsl:value-of select="@elementclass"/></td>
+							</tr>
+						</xsl:if>
+					</xsl:for-each>
+
+					<xsl:variable name="url">getattribute?objectname=<xsl:call-template name="uri-encode"><xsl:with-param name="uri"><xsl:value-of select="$request.objectname"/></xsl:with-param></xsl:call-template>&amp;attribute=<xsl:value-of select="$request.attribute"/>&amp;format=collection&amp;template=viewcollection&amp;locale=<xsl:value-of select="$request.locale"/></xsl:variable>
+					<xsl:call-template name="aggregation-navigation">
+						<xsl:with-param name="url" select="$url"/>
+						<xsl:with-param name="total" select="count(MBean/Attribute/Collection/Element)"/>
+						<xsl:with-param name="start" select="$request.start"/>
+						<xsl:with-param name="step" select="$request.step"/>
+						<xsl:with-param name="str.prefix">viewcollection.main</xsl:with-param>
+					</xsl:call-template>
+
+					<xsl:call-template name="mbeanview">
+						<xsl:with-param name="objectname" select="MBean/@objectname"/>
+						<xsl:with-param name="colspan" select="3"/>
+					</xsl:call-template>
+				</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/viewmap.xsl
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/viewmap.xsl?rev=423924&view=auto
==============================================================================
--- incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/viewmap.xsl (added)
+++ incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/viewmap.xsl Thu Jul 20 06:04:47 2006
@@ -0,0 +1,131 @@
+<?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">viewmap.title</xsl:param>
+	<xsl:param name="request.step">30</xsl:param>
+	<xsl:param name="request.start">0</xsl:param>
+	<xsl:param name="request.objectname"/>
+	<xsl:param name="request.attribute"/>
+	<xsl:param name="request.format"/>
+	<xsl:param name="request.template"/>
+	<xsl:include href="common.xsl"/>
+	<xsl:include href="mbean_attributes.xsl"/>
+
+	<!-- 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>
+				<table width="100%" cellpadding="0" cellspacing="0" border="0">
+					<tr>
+						<td colspan="4" class="page_title">
+							<xsl:call-template name="str">
+								<xsl:with-param name="id">viewmap.main.title</xsl:with-param>
+								<xsl:with-param name="p0"><xsl:value-of select="MBean/@objectname"/></xsl:with-param>
+							</xsl:call-template>
+						</td>
+					</tr>
+					<tr>
+						<td colspan="4" class="fronttab">
+							<xsl:call-template name="str">
+								<xsl:with-param name="id">viewmap.main.viewmaptitle</xsl:with-param>
+								<xsl:with-param name="p0"><xsl:value-of select="MBean/Attribute/@classname"/></xsl:with-param>
+								<xsl:with-param name="p1"><xsl:value-of select="MBean/Attribute/@name"/></xsl:with-param>
+							</xsl:call-template>
+						</td>
+					</tr>
+					<tr>
+						<td class="fronttab">
+							<div class="tableheader">
+								<xsl:call-template name="str">
+									<xsl:with-param name="id">viewmap.main.key</xsl:with-param>
+								</xsl:call-template>
+							</div>
+						</td>
+						<td class="fronttab">
+							<div class="tableheader">
+								<xsl:call-template name="str">
+									<xsl:with-param name="id">viewmap.main.keyclass</xsl:with-param>
+								</xsl:call-template>
+							</div>
+						</td>
+						<td class="fronttab">
+							<div class="tableheader">
+								<xsl:call-template name="str">
+									<xsl:with-param name="id">viewmap.main.value</xsl:with-param>
+								</xsl:call-template>
+							</div>
+						</td>
+						<td class="fronttab">
+							<div class="tableheader">
+								<xsl:call-template name="str">
+									<xsl:with-param name="id">viewmap.main.valueclass</xsl:with-param>
+								</xsl:call-template>
+							</div>
+						</td>
+					</tr>
+					<xsl:for-each select="MBean/Attribute/Map/Element">
+						<xsl:sort order="ascending" select="@index"/>
+						<xsl:if test="position()&lt;($request.step+$request.start) and position()&gt;$request.start">
+							<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="aggregationrow">
+									<xsl:call-template name="renderobject">
+										<xsl:with-param name="objectclass" select="@keyclass"/>
+										<xsl:with-param name="objectvalue" select="@key"/>
+									</xsl:call-template>
+								</td>
+								<td class="aggregationrow"><xsl:value-of select="@keyclass"/></td>
+								<td class="aggregationrow">
+									<xsl:call-template name="renderobject">
+										<xsl:with-param name="objectclass" select="@elementclass"/>
+										<xsl:with-param name="objectvalue" select="@element"/>
+									</xsl:call-template>
+								</td>
+								<td class="aggregationrow"><xsl:value-of select="@elementclass"/></td>
+							</tr>
+						</xsl:if>
+					</xsl:for-each>
+
+					<xsl:variable name="url">getattribute?objectname=<xsl:call-template name="uri-encode"><xsl:with-param name="uri"><xsl:value-of select="$request.objectname"/></xsl:with-param></xsl:call-template>&amp;attribute=<xsl:value-of select="$request.attribute"/>&amp;format=map&amp;template=viewmap&amp;locale=<xsl:value-of select="$request.locale"/></xsl:variable>
+					<xsl:call-template name="aggregation-navigation">
+						<xsl:with-param name="url" select="$url"/>
+						<xsl:with-param name="total" select="count(MBean/Attribute/Map/Element)"/>
+						<xsl:with-param name="start" select="$request.start"/>
+						<xsl:with-param name="step" select="$request.step"/>
+						<xsl:with-param name="str.prefix">viewmap.main</xsl:with-param>
+					</xsl:call-template>
+
+					<xsl:call-template name="mbeanview">
+						<xsl:with-param name="objectname" select="MBean/@objectname"/>
+						<xsl:with-param name="colspan" select="4"/>
+					</xsl:call-template>
+				</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/xalan-ext.xsl
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.mosgi.jmx.httpconnector/src/main/resources/mx4j/tools/adaptor/http/xsl/xalan-ext.xsl?rev=423924&view=auto
==============================================================================
--- 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/xalan-ext.xsl Thu Jul 20 06:04:47 2006
@@ -0,0 +1,35 @@
+<?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)
+				 Brett Knights
+ Revision: $Revision: 1.1.1.1 $
+																																					-->
+<xsl:stylesheet
+	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+	version="1.0"
+	xmlns:encoder="/java.net.URLEncoder"
+	xmlns:java="http://xml.apache.org/xslt/java"
+	exclude-result-prefixes="java">
+
+	<xsl:template name="uri-encode">
+		<xsl:param name="uri"/>
+			<xsl:choose>
+				<xsl:when test="function-available('java:java.net.URLEncoder.encode')">
+					<xsl:value-of select="java:java.net.URLEncoder.encode($uri)"/>
+				</xsl:when>
+				<xsl:when test="function-available('encoder:encode')">
+					<xsl:value-of select="encoder:encode($uri)"/>
+				</xsl:when>
+				<xsl:otherwise>
+					<xsl:message>No encode function available</xsl:message>
+					<xsl:value-of select="$uri"/>
+				</xsl:otherwise>
+			</xsl:choose>
+	</xsl:template>
+</xsl:stylesheet>



Mime
View raw message