resource-agents: master - Remove antiquated, unused XSLT scripts

Lon Hohberger lon at fedoraproject.org
Mon Oct 18 18:48:16 UTC 2010


Gitweb:        http://git.fedorahosted.org/git/resource-agents.git?p=resource-agents.git;a=commitdiff;h=c4aefab84cb2ccbdf58dfe6c86e4b183675d7f6e
Commit:        c4aefab84cb2ccbdf58dfe6c86e4b183675d7f6e
Parent:        2ada18fd22f5593b840b96b0ede1a4dd9d224160
Author:        Lon Hohberger <lhh at redhat.com>
AuthorDate:    Mon Oct 18 14:47:16 2010 -0400
Committer:     Lon Hohberger <lhh at redhat.com>
CommitterDate: Mon Oct 18 14:47:16 2010 -0400

Remove antiquated, unused XSLT scripts

Signed-off-by: Lon Hohberger <lhh at redhat.com>
---
 rgmanager/src/resources/ra2csv.xsl |   19 ----------
 rgmanager/src/resources/ra2oid.xsl |   68 ------------------------------------
 2 files changed, 0 insertions(+), 87 deletions(-)

diff --git a/rgmanager/src/resources/ra2csv.xsl b/rgmanager/src/resources/ra2csv.xsl
deleted file mode 100644
index a00243a..0000000
--- a/rgmanager/src/resources/ra2csv.xsl
+++ /dev/null
@@ -1,19 +0,0 @@
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-<xsl:output method="text" indent="no"/>
-
-<xsl:template name="normalize-name">
-	<xsl:param name="type"/>
-	<xsl:param name="value"/>
-	<xsl:variable name="normalized" select="concat( translate(substring(@name, 1, 1), '_abcdefghijklmnopqrstuvwrxyz', '-ABCDEFGHIJKLMNOPQRSTUVWRXYZ'), translate(substring(@name, 2), '_ABCDEFGHIJKLMNOPQRSTUVWRXYZ', '-abcdefghijklmnopqrstuvwrxyz'))"/>
-	<xsl:choose>
-		<xsl:when test="$normalized = 'Name'"></xsl:when>
-		<xsl:otherwise><xsl:value-of select="$type"/>,rhcs<xsl:value-of select="$normalized"/><xsl:text>
-</xsl:text></xsl:otherwise>
-	</xsl:choose>
-</xsl:template>
-
-<xsl:template match="/resource-agent"><xsl:call-template name="normalize-name"><xsl:with-param name="type">obj</xsl:with-param><xsl:with-param name="value" select="normalize-space(@name)"/></xsl:call-template>
-<xsl:for-each select="parameters/parameter"><xsl:call-template name="normalize-name"><xsl:with-param name="type">attr</xsl:with-param><xsl:with-param name="value" select="normalize-space(@name)"/></xsl:call-template>
-</xsl:for-each>
-</xsl:template>
-</xsl:stylesheet>
diff --git a/rgmanager/src/resources/ra2oid.xsl b/rgmanager/src/resources/ra2oid.xsl
deleted file mode 100644
index 697bd49..0000000
--- a/rgmanager/src/resources/ra2oid.xsl
+++ /dev/null
@@ -1,68 +0,0 @@
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-<xsl:output method="text" indent="no"/>
-
-<xsl:template name="normalize-name">
-	<xsl:param name="value"/>
-	<xsl:variable name="normalized" select="concat( translate(substring(@name, 1, 1), '_abcdefghijklmnopqrstuvwrxyz', '-ABCDEFGHIJKLMNOPQRSTUVWRXYZ'), translate(substring(@name, 2), '_ABCDEFGHIJKLMNOPQRSTUVWRXYZ', '-abcdefghijklmnopqrstuvwrxyz'))"/>
-	<xsl:choose>
-		<xsl:when test="$normalized = 'Name'">name</xsl:when>
-		<xsl:otherwise>rhcs<xsl:value-of select="$normalized"/></xsl:otherwise>
-	</xsl:choose>
-</xsl:template>
-
-<xsl:template match="/resource-agent">
-#
-# Resource Agent: <xsl:value-of select="@name"/>
-# Provider: <xsl:value-of select="@provider"/>
-# Provider Version: <xsl:value-of select="@version"/>
-# API Version: <xsl:value-of select="normalize-space(version)"/>
-# Description: <xsl:value-of select="normalize-space(shortdesc)"/>
-#
-objectClasses: ( 
-	1.3.6.1.4.1.2312.8.1.2.@@OBJ_CLASS_<xsl:call-template name="normalize-name"><xsl:with-param name="value" select="@name"/></xsl:call-template>@@ NAME '<xsl:call-template name="normalize-name">
-		<xsl:with-param name="value" select="@name"/>
-	</xsl:call-template>' SUP top STRUCTURAL
-	DESC '<xsl:value-of select="normalize-space(shortdesc)"/>'
-	MUST( <xsl:for-each select="parameters/parameter">
-		<xsl:if test="@required = 1 or @primary = 1">
-			<xsl:call-template name="normalize-name">
-				<xsl:with-param name="value" select="@name"/>
-			</xsl:call-template>
-			<xsl:if test="position()!=last()"> $ </xsl:if>
-		</xsl:if>
-	</xsl:for-each> )
-	MAY( <xsl:for-each select="parameters/parameter">
-		<xsl:if test="string(number(@primary)) = 'NaN' or @primary = 0">
-			<xsl:if test="string(number(@required)) = 'NaN' or @required = 0">
-				<xsl:call-template name="normalize-name">
-					<xsl:with-param name="value" select="@name"/>
-				</xsl:call-template>
-				<xsl:if test="position()!=last()"> $ </xsl:if>
-			</xsl:if>
-		</xsl:if>
-	</xsl:for-each> )
-)
-
-#
-# Object Attributes
-# FIXME: Run a list of known attribute types
-#
-<xsl:for-each select="parameters/parameter">
-<xsl:if test="@name != 'name'">
-attributeTypes: (
-	1.3.6.1.4.1.2312.8.1.1.@@ATTR_TYPE_<xsl:call-template name="normalize-name"><xsl:with-param name="value" select="@name"/></xsl:call-template>@@ NAME '<xsl:call-template name="normalize-name"><xsl:with-param name="value" select="@name"/></xsl:call-template>'
-	DESC '<xsl:value-of select="normalize-space(shortdesc)"/>'
-	<xsl:choose>
-	<xsl:when test="content/@type = 'integer'">EQUALITY integerMatch
-	SYNTAX 1.3.6.1.4.1.1466.115.121.1.27</xsl:when>
-	<xsl:when test="content/@type = 'boolean'">EQUALITY booleanMatch
-	SYNTAX 1.3.6.1.4.1.1466.115.121.1.7</xsl:when>
-	<xsl:otherwise>EQUALITY caseExactIA5Match
-	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26</xsl:otherwise>
-	</xsl:choose>
-	SINGLE-VALUE
-)
-</xsl:if>
-</xsl:for-each>
-</xsl:template>
-</xsl:stylesheet>


More information about the cluster-commits mailing list