1 <?xml version="1.0" encoding="ISO-8859-15" ?>
3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
5 <xsl:template match="/">
6 <xsl:for-each select="config/option">
8 <xsl:when test="@type='boolean'">
10 <xsl:when test="@value='true'">
11 <xsl:text>[DEFINE] </xsl:text>
12 <xsl:value-of select="@name"/>
13 <xsl:text> </xsl:text>
15 <xsl:when test="@value='false'">
16 <!-- nothing to do -->
19 <xsl:message terminate="yes"> ERROR: boolean configuration option '<xsl:value-of select="@name"/>' has unsupported value '<xsl:value-of select="@type"/>' instead of [true|false].</xsl:message>
23 <xsl:when test="@type='integer'">
24 <!-- this makes absolutely no sense but the old code did it as well -->
25 <xsl:text>[DEFINE] </xsl:text>
26 <xsl:value-of select="@name"/>
27 <xsl:text> </xsl:text>
29 <!-- config option "string" -->
30 <xsl:when test="@type='string'">
33 <xsl:message terminate="yes"> ERROR: configuration option '<xsl:value-of select="@name"/>' has unsupported type '<xsl:value-of select="@type"/>'.</xsl:message>
39 <xsl:output method="text" indent="no" encoding="iso-8859-15"/>