summaryrefslogtreecommitdiff
path: root/tests/listCI2.xsl
diff options
context:
space:
mode:
authorsvu <svu>2006-10-09 20:41:33 +0000
committersvu <svu>2006-10-09 20:41:33 +0000
commitbedcf4e1511639c314800fbd87486d7eb1bd4149 (patch)
treea29442b45613389dbfb02f0174d58f4bbd27a330 /tests/listCI2.xsl
parent21cf640fe5f2269439d2c140dff2df691922570d (diff)
downloadxkeyboard-config-bedcf4e1511639c314800fbd87486d7eb1bd4149.tar.gz
a bit of cleanup in tests
Diffstat (limited to 'tests/listCI2.xsl')
-rw-r--r--tests/listCI2.xsl11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/listCI2.xsl b/tests/listCI2.xsl
index 3dd48d7..484d9dd 100644
--- a/tests/listCI2.xsl
+++ b/tests/listCI2.xsl
@@ -7,10 +7,15 @@
<xsl:param name="type"/>
<xsl:param name="parentId"/>
+ <xsl:template match="xkbConfigRegistry">
+ <xsl:apply-templates select=".//configItem[(name(..) = $type) and (../../../configItem/name = $parentId or ../../configItem/name = $parentId )]">
+ <xsl:sort select="name"/>
+ </xsl:apply-templates>
+ </xsl:template>
+
<xsl:template match="configItem">
- <xsl:if test="name(..) = $type and ( ../../../configItem/name = $parentId or ../../configItem/name = $parentId )">
- <xsl:value-of select="./name"/>
- </xsl:if>
+ <xsl:value-of select="./name"/><xsl:text>
+</xsl:text>
</xsl:template>
</xsl:stylesheet>