7
0
mirror of https://git.rockylinux.org/rocky/comps.git synced 2024-11-27 15:16:27 +00:00
comps/scripts/comps-distro-only.xsl
2024-06-24 09:40:09 -07:00

33 lines
829 B
XML

<?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>