mirror of
https://git.rockylinux.org/rocky/comps.git
synced 2024-11-25 06:31:24 +00:00
33 lines
829 B
XML
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>
|