|
|
1.1 root 1: <?xml version="1.0" encoding="ISO-8859-15" ?>
2:
3: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
4:
5: <xsl:template match="/">
6: <xsl:for-each select="config/option">
7: <xsl:choose>
8: <xsl:when test="@type='boolean'">
9: <xsl:choose>
10: <xsl:when test="@value='true'">
11: <xsl:text>[DEFINE] </xsl:text>
12: <xsl:value-of select="@name"/>
13: <xsl:text> </xsl:text>
14: </xsl:when>
15: <xsl:when test="@value='false'">
16: <!-- nothing to do -->
17: </xsl:when>
18: <xsl:otherwise>
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>
20: </xsl:otherwise>
21: </xsl:choose>
22: </xsl:when>
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>
28: </xsl:when>
29: <!-- config option "string" -->
30: <xsl:when test="@type='string'">
31: </xsl:when>
32: <xsl:otherwise>
33: <xsl:message terminate="yes"> ERROR: configuration option '<xsl:value-of select="@name"/>' has unsupported type '<xsl:value-of select="@type"/>'.</xsl:message>
34: </xsl:otherwise>
35: </xsl:choose>
36: </xsl:for-each>
37: </xsl:template>
38:
39: <xsl:output method="text" indent="no" encoding="iso-8859-15"/>
40:
41: </xsl:stylesheet>
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.