spacewalk/spacewalk-setup-jabberd/share/jabberd/sm.xsl | 15 +++++++++++++++
1 file changed, 15 insertions(+)
New commits:
commit b3ebafe141ceb38733adbcbfeb7ae6295d266120
Author: Milan Zazrivec <mzazrivec(a)redhat.com>
Date: Thu Nov 25 17:46:50 2010 +0100
sm.xsl for jabberd ver. 2.2.11
New XSL template to make Spacewalk / osa-dispatcher work with jabberd
version 2.2.11:
* sm needs to use the same database backend as c2s
* we need to set /sm/local/id properly
diff --git a/spacewalk/spacewalk-setup-jabberd/share/jabberd/sm.xsl
b/spacewalk/spacewalk-setup-jabberd/share/jabberd/sm.xsl
index 83ce864..2e1ded2 100644
--- a/spacewalk/spacewalk-setup-jabberd/share/jabberd/sm.xsl
+++ b/spacewalk/spacewalk-setup-jabberd/share/jabberd/sm.xsl
@@ -14,4 +14,19 @@
</xsl:copy>
</xsl:template>
+<xsl:template match="/sm/local[ not (id = '@hostname@') ]">
+ <xsl:copy>
+ <xsl:text>
+ </xsl:text>
+ <id>@hostname@</id>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+</xsl:template>
+
+<xsl:template match="/sm/storage/driver">
+ <xsl:copy>
+ <xsl:text>db</xsl:text>
+ </xsl:copy>
+</xsl:template>
+
</xsl:stylesheet>