7
0
mirror of https://git.rockylinux.org/rocky/comps.git synced 2024-11-22 05:01:24 +00:00
comps/scripts/comps-distro-only.xsl

33 lines
829 B
XML
Raw Normal View History

2024-06-24 16:40:09 +00:00
<?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>