1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
3 <xsl:output method="text" encoding="UTF-8" doctype-system="xkb.dtd"/>
4 <xsl:template match="/xkbConfigRegistry">
5 <xsl:text><![CDATA[.\" WARNING: this man page is autogenerated. Do not edit or you will lose all your changes.
6 .TH XKEYBOARD-CONFIG __miscmansuffix__ __vendorversion__
8 xkeyboard-config \- XKB data description files
10 xkeyboard-config provides the description files for the X Keyboard
11 Extension (XKB). The configuration options below are usually applied with
12 setxkbmap(__appmansuffix__).
21 <xsl:apply-templates select="modelList"/>
30 Layout(Variant) Description
32 <xsl:apply-templates select="layoutList"/>
37 <xsl:apply-templates select="optionList"/>
52 __xkb_base__/semantics
59 setxkbmap(__appmansuffix__)
63 <!-- split model/description into a normal table -->
64 <xsl:template match="modelList">
65 <xsl:for-each select="model">
66 <xsl:value-of select="configItem/name"/><xsl:text>	</xsl:text><xsl:value-of select="configItem/description"/>
67 <xsl:text> </xsl:text>
71 <!-- split layout/variant/description into a table like this
74 layout1(variant1) description
75 layout1(variant2) description
77 layout2(variant1) description
79 <xsl:template match="layoutList">
80 <xsl:for-each select="layout">
81 <xsl:value-of select="configItem/name"/>
82 <xsl:text>	</xsl:text>
83 <xsl:value-of select="configItem/description"/>
84 <xsl:text> </xsl:text>
85 <xsl:for-each select="variantList/variant">
86 <xsl:value-of select="../../configItem/name"/>
87 <xsl:text>(</xsl:text>
88 <xsl:value-of select="configItem/name"/>
89 <xsl:text>)</xsl:text>
90 <xsl:text>	</xsl:text>
91 <xsl:value-of select="configItem/description"/>
92 <xsl:text> </xsl:text>
94 <xsl:text> </xsl:text>
95 <xsl:text>_ </xsl:text>
99 <!-- split option into a table like this
110 <xsl:template match="optionList">
111 <xsl:for-each select="group">
114 <xsl:text> </xsl:text>
115 <xsl:value-of select="configItem/description"/>
125 <xsl:for-each select="option">
126 <xsl:value-of select="configItem/name"/>
127 <xsl:text>	</xsl:text>
128 <xsl:value-of select="configItem/description"/>
129 <xsl:text> </xsl:text>