summaryrefslogtreecommitdiff
path: root/metadata
diff options
context:
space:
mode:
authorDavid Reveman <davidr@novell.com>2007-08-17 09:24:19 -0400
committerDavid Reveman <davidr@novell.com>2007-08-17 09:24:19 -0400
commit11761f88019c4bc450172e65b1edbc73176be22c (patch)
treef271de48bd1702f2f36211e3dd08ef80df2765e7 /metadata
parent5519ac62135a8eb1a5f5c367c734f254f890e577 (diff)
Generate entries in kcfg files with unique names and use
the key attribute.
Diffstat (limited to 'metadata')
-rw-r--r--metadata/kcfg.xslt15
-rw-r--r--metadata/kconfig.xslt2
2 files changed, 14 insertions, 3 deletions
diff --git a/metadata/kcfg.xslt b/metadata/kcfg.xslt
index 71aa5145..c8b52b50 100644
--- a/metadata/kcfg.xslt
+++ b/metadata/kcfg.xslt
@@ -36,7 +36,7 @@
</kcfgfile>
<xsl:for-each select="/compiz/*/display | /compiz/*/screen">
<group>
- <xsl:attribute name='name'>
+ <xsl:variable name="group">
<xsl:choose>
<xsl:when test="ancestor::plugin">
<xsl:value-of select="ancestor::plugin/@name"/>
@@ -47,12 +47,17 @@
</xsl:choose>
<xsl:text>_</xsl:text>
<xsl:value-of select="name()"/>
+ </xsl:variable>
+ <xsl:attribute name='name'>
+ <xsl:value-of select="$group"/>
<xsl:if test="name() = 'screen'">
<xsl:text>$(screen)</xsl:text>
</xsl:if>
</xsl:attribute>
<xsl:for-each select="option[not(@read_only='true') and not(@type='action')]">
- <xsl:call-template name="print_option"/>
+ <xsl:call-template name="print_option">
+ <xsl:with-param name="group" select="$group"/>
+ </xsl:call-template>
</xsl:for-each>
</group>
</xsl:for-each>
@@ -60,11 +65,17 @@
</xsl:template>
<xsl:template name="print_option">
+ <xsl:param name="group"/>
<entry>
<xsl:variable name="ktype">
<xsl:call-template name="print_type"/>
</xsl:variable>
<xsl:attribute name='name'>
+ <xsl:value-of select="$group"/>
+ <xsl:text>_</xsl:text>
+ <xsl:value-of select="@name"/>
+ </xsl:attribute>
+ <xsl:attribute name='key'>
<xsl:value-of select="@name"/>
</xsl:attribute>
<xsl:attribute name='type'>
diff --git a/metadata/kconfig.xslt b/metadata/kconfig.xslt
index 4675f162..31384c36 100644
--- a/metadata/kconfig.xslt
+++ b/metadata/kconfig.xslt
@@ -47,7 +47,7 @@
</xsl:choose>
<xsl:text>]&#10;</xsl:text>
<xsl:for-each select="entry">
- <xsl:value-of select="@name"/>
+ <xsl:value-of select="@key"/>
<xsl:text>=</xsl:text>
<xsl:value-of select="default/text()"/>
<xsl:text>&#10;</xsl:text>