Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mbussolotto committed Sep 19, 2023
1 parent 37adfa6 commit e41723d
Showing 1 changed file with 14 additions and 18 deletions.
32 changes: 14 additions & 18 deletions spacewalk/setup/share/add_appbase.xml.xsl
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<!-- Copy all nodes and attributes as they are -->
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>

<xsl:template match="/Server/Service/Engine/Host">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:text>
</xsl:text>
<xsl:element name="Host">
<xsl:copy-of select="@*" />
<xsl:attribute name="appBase">/usr/share/susemanager/www/tomcat/webapps</xsl:attribute>
</xsl:element>
<xsl:apply-templates select="node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="/Server/Service/Engine/Host">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:attribute name="appBase">/usr/share/susemanager/www/tomcat/webapps</xsl:attribute>
<xsl:apply-templates select="node()"/>
</xsl:copy>
</xsl:template>

</xsl:stylesheet>

0 comments on commit e41723d

Please sign in to comment.