PIKApp/build/windows/installer/lang/pika-ms-installer-config.xs...

38 lines
1.0 KiB
XML
Raw Normal View History

2023-09-26 00:35:21 +02:00
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" omit-xml-declaration="yes" />
<xsl:template match="/">
<xsl:apply-templates select="pika-ms-installer-config" />
</xsl:template>
<xsl:template match="pika-ms-installer-config">
<xsl:apply-templates select="section" />
</xsl:template>
<xsl:template match="section">[<xsl:value-of select="@name"/>]
<xsl:apply-templates select="config" />
<xsl:text>&#xA;</xsl:text>
</xsl:template>
<xsl:template match="config">
<xsl:value-of select="@name"/>=<xsl:value-of select="."/>
<xsl:apply-templates select="@LANG_CHECK@" />
<xsl:text>&#xA;</xsl:text>
</xsl:template>
<xsl:template match="config">
<xsl:choose>
<xsl:when test="@LANG_CHECK@">
<xsl:value-of select="@name"/>=<xsl:apply-templates select="@LANG_CHECK@" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@name"/>=<xsl:apply-templates select="value[not(@xml:lang)]" />
</xsl:otherwise>
</xsl:choose>
<xsl:text>&#xA;</xsl:text>
</xsl:template>
</xsl:stylesheet>