mx4j/src/tools/mx4j/tools/adaptor/http/xsl mbean_attributes.xsl,1.4,1.5
Simone Bordet <[email protected]> Sat, 15 Jan 2005 14:19:09 +0000
| Newsgroups | gmane.comp.java.mx4j.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/mx4j/mx4j/src/tools/mx4j/tools/adaptor/http/xsl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25045/src/tools/mx4j/tools/adaptor/http/xsl
Modified Files:
mbean_attributes.xsl
Log Message:
Fixed formatting bugs caused by code reformatting.
Fixes bug #1101003, thanks to Guillame Nodet
Index: mbean_attributes.xsl
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/tools/mx4j/tools/adaptor/http/xsl/mbean_attributes.xsl,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** mbean_attributes.xsl 10 Jan 2005 10:11:30 -0000 1.4
--- mbean_attributes.xsl 15 Jan 2005 14:19:02 -0000 1.5
***************
*** 19,26 ****
<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">
--- 19,23 ----
<xsl:choose>
<xsl:when test="@isnull='false'">
! <xsl:variable name="url" select="concat('getattribute?objectname=', ../@objectname, '&attribute=', @name, '&format=array&template=viewarray')"/>
<a href="{$url}">
<xsl:call-template name="str">
***************
*** 42,49 ****
<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">
--- 39,43 ----
<xsl:choose>
<xsl:when test="@isnull='false'">
! <xsl:variable name="url" select="concat('getattribute?objectname=', ../@objectname, '&attribute=', @name, '&format=collection&template=viewcollection')"/>
<a href="{$url}">
<xsl:call-template name="str">
***************
*** 65,72 ****
<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">
--- 59,63 ----
<xsl:choose>
<xsl:when test="@isnull='false'">
! <xsl:variable name="url" select="concat('getattribute?objectname=', ../@objectname, '&attribute=', @name, '&format=map&template=viewmap')"/>
<a href="{$url}">
<xsl:call-template name="str">
***************
*** 88,95 ****
<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">
--- 79,83 ----
<xsl:choose>
<xsl:when test="@isnull='false'">
! <xsl:variable name="url" select="concat('getattribute?objectname=', ../@objectname, '&attribute=', @name, '&format=compositedata&template=identity')"/>
<a href="{$url}">
<xsl:call-template name="str">
***************
*** 111,118 ****
<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">
--- 99,103 ----
<xsl:choose>
<xsl:when test="@isnull='false'">
! <xsl:variable name="url" select="concat('getattribute?objectname=', ../@objectname, '&attribute=', @name, '&format=tabulardata&template=viewtabulardata')"/>
<a href="{$url}">
<xsl:call-template name="str">
***************
*** 255,259 ****
<xsl:call-template name="map"/>
</xsl:when>
! <xsl:when test="starts-with(@type, '[L')">
<xsl:call-template name="array"/>
</xsl:when>
--- 240,244 ----
<xsl:call-template name="map"/>
</xsl:when>
! <xsl:when test="starts-with(@type, '[')">
<xsl:call-template name="array"/>
</xsl:when>
***************
*** 283,287 ****
<xsl:call-template name="map"/>
</xsl:when>
! <xsl:when test="starts-with(@type, '[L')">
<xsl:call-template name="array"/>
</xsl:when>
--- 268,272 ----
<xsl:call-template name="map"/>
</xsl:when>
! <xsl:when test="starts-with(@type, '[')">
<xsl:call-template name="array"/>
</xsl:when>
***************
*** 365,368 ****
--- 350,371 ----
</xsl:call-template>
</xsl:when>
+ <xsl:when test="starts-with(@type, '[')">
+ <xsl:variable name="type" select="substring-after(@type, '[')"/>
+ <xsl:call-template name="str">
+ <xsl:with-param name="id">mbean_attributes.attribute.arrayof</xsl:with-param>
+ <xsl:with-param name="p0">
+ <xsl:choose>
+ <xsl:when test="$type = 'Z'">boolean</xsl:when>
+ <xsl:when test="$type = 'C'">char</xsl:when>
+ <xsl:when test="$type = 'F'">float</xsl:when>
+ <xsl:when test="$type = 'D'">double</xsl:when>
+ <xsl:when test="$type = 'B'">byte</xsl:when>
+ <xsl:when test="$type = 'S'">short</xsl:when>
+ <xsl:when test="$type = 'I'">int</xsl:when>
+ <xsl:when test="$type = 'J'">long</xsl:when>
+ </xsl:choose>
+ </xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
<xsl:otherwise>
<xsl:value-of select="@type"/>
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt