/usr/share/cluster/relaxng/ra2rng.xsl is in resource-agents 1:3.9.2-5+deb7u2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" indent="yes"/>
<xsl:template name="capitalize">
<xsl:param name="value"/>
<xsl:variable name="normalized" select="translate($value, '_abcdefghijklmnopqrstuvwrxyz', '-ABCDEFGHIJKLMNOPQRSTUVWRXYZ')"/>
<xsl:value-of select="$normalized"/>
</xsl:template>
<xsl:template match="/resource-agent">
<define name="<xsl:call-template name="capitalize"><xsl:with-param name="value" select="@name"/></xsl:call-template>">
<element name="<xsl:value-of select="@name"/>" rha:description="<xsl:value-of select="normalize-space(shortdesc)"/>">
<choice>
<group>
<!-- rgmanager specific stuff -->
<attribute name="ref" rha:description="Reference to existing <xsl:value-of select="@name"/> resource in the resources section."/>
</group>
<group><xsl:for-each select="parameters/parameter">
<xsl:choose>
<xsl:when test="@required = 1 or @primary = 1">
<attribute name="<xsl:value-of select="@name"/>" rha:description="<xsl:value-of select="normalize-space(shortdesc)"/>"/></xsl:when>
<xsl:otherwise>
<optional>
<attribute name="<xsl:value-of select="@name"/>" rha:description="<xsl:value-of select="normalize-space(shortdesc)"/>"/>
</optional></xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</group>
</choice>
<optional>
<attribute name="__independent_subtree" rha:description="Treat this and all children as an independent subtree."/>
</optional>
<optional>
<attribute name="__enforce_timeouts" rha:description="Consider a timeout for operations as fatal."/>
</optional>
<optional>
<attribute name="__max_failures" rha:description="Maximum number of failures before returning a failure to a status check."/>
</optional>
<optional>
<attribute name="__failure_expire_time" rha:description="Amount of time before a failure is forgotten."/>
</optional>
<optional>
<attribute name="__max_restarts" rha:description="Maximum number restarts for an independent subtree before giving up."/>
</optional>
<optional>
<attribute name="__restart_expire_time" rha:description="Amount of time before a failure is forgotten for an independent subtree."/>
</optional>
<optional>
<ref name="CHILDREN"/>
</optional>
</element>
</define>
</xsl:template>
</xsl:stylesheet>
|