aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/xkeyboard-config/tests/listCIs.xsl
blob: 87e5bd9ded7a7251cb6a52359920cc22824c5004 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  >
<xsl:output method="text"/>

  <xsl:param name="type"/>

  <xsl:template match="xkbConfigRegistry">
    <xsl:apply-templates select=".//configItem[name(..) = $type]">
      <xsl:sort select="name"/>
    </xsl:apply-templates>
  </xsl:template>

  <xsl:template match="configItem">
    <xsl:value-of select="./name"/><xsl:text>
</xsl:text>
  </xsl:template>

</xsl:stylesheet>