1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5 <xsl:output method="text"/>
7 <xsl:param name="type"/>
8 <xsl:param name="parentId"/>
10 <xsl:template match="xkbConfigRegistry">
11 <xsl:apply-templates select=".//configItem[(name(..) = $type) and (../../../configItem/name = $parentId or ../../configItem/name = $parentId )]">
12 <xsl:sort select="name"/>
13 </xsl:apply-templates>
16 <xsl:template match="configItem">
17 <xsl:value-of select="./name"/><xsl:text>