Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
comps-distro-only.xsl 829 B
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    version="1.1">
    <xsl:param name="distro"/>

    <xsl:template match="node()|@*">
        <xsl:copy>
            <xsl:apply-templates select="node()|@*"/>
        </xsl:copy>
    </xsl:template>


    <xsl:template match="rhel_only">
        <xsl:if test="$distro='rhel'">
            <xsl:apply-templates/>
        </xsl:if>
    </xsl:template>

    <xsl:template match="centos_only">
        <xsl:if test="$distro='centos'">
            <xsl:apply-templates/>
        </xsl:if>
    </xsl:template>

    <xsl:template match="rocky_only">
        <xsl:if test="$distro='rocky'">
            <xsl:apply-templates/>
        </xsl:if>
    </xsl:template>

</xsl:stylesheet>