man.xsl revision 0412cded
10412cdedSmrg<?xml version="1.0" encoding="UTF-8"?>
20412cdedSmrg<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
30412cdedSmrg    <xsl:output method="text" encoding="UTF-8" doctype-system="xkb.dtd"/>
40412cdedSmrg    <xsl:template match="/xkbConfigRegistry">
50412cdedSmrg        <xsl:text><![CDATA[.\" WARNING: this man page is autogenerated. Do not edit or you will lose all your changes.
60412cdedSmrg.TH XKEYBOARD-CONFIG __miscmansuffix__ __vendorversion__
70412cdedSmrg.SH NAME
80412cdedSmrgxkeyboard-config \- XKB data description files
90412cdedSmrg.SH DESCRIPTION
100412cdedSmrgxkeyboard-config provides the description files for the X Keyboard
110412cdedSmrgExtension (XKB). The configuration options below are usually applied with
120412cdedSmrgsetxkbmap(__appmansuffix__).
130412cdedSmrg.SH MODELS
140412cdedSmrg.TS
150412cdedSmrgleft,box;
160412cdedSmrglB lB
170412cdedSmrg___
180412cdedSmrglB l.
190412cdedSmrgModel	Description
200412cdedSmrg]]></xsl:text>
210412cdedSmrg        <xsl:apply-templates select="modelList"/>
220412cdedSmrg        <xsl:text><![CDATA[
230412cdedSmrg.TE
240412cdedSmrg.SH LAYOUTS
250412cdedSmrg.TS
260412cdedSmrgleft,box;
270412cdedSmrglB lB
280412cdedSmrg____
290412cdedSmrglB l.
300412cdedSmrgLayout(Variant)	Description
310412cdedSmrg]]></xsl:text>
320412cdedSmrg        <xsl:apply-templates select="layoutList"/>
330412cdedSmrg        <xsl:text><![CDATA[
340412cdedSmrg.TE
350412cdedSmrg.SH OPTIONS
360412cdedSmrg]]></xsl:text>
370412cdedSmrg        <xsl:apply-templates select="optionList"/>
380412cdedSmrg        <xsl:text><![CDATA[
390412cdedSmrg.SH FILES
400412cdedSmrg__xkb_base__/compat
410412cdedSmrg
420412cdedSmrg__xkb_base__/compiled
430412cdedSmrg
440412cdedSmrg__xkb_base__/geometry
450412cdedSmrg
460412cdedSmrg__xkb_base__/keycodes
470412cdedSmrg
480412cdedSmrg__xkb_base__/keymap
490412cdedSmrg
500412cdedSmrg__xkb_base__/rules
510412cdedSmrg
520412cdedSmrg__xkb_base__/semantics
530412cdedSmrg
540412cdedSmrg__xkb_base__/symbols
550412cdedSmrg
560412cdedSmrg__xkb_base__/types
570412cdedSmrg
580412cdedSmrg.SH SEE ALSO
590412cdedSmrgsetxkbmap(__appmansuffix__)
600412cdedSmrg]]></xsl:text>
610412cdedSmrg    </xsl:template>
620412cdedSmrg
630412cdedSmrg<!-- split model/description into a normal table -->
640412cdedSmrg    <xsl:template match="modelList">
650412cdedSmrg        <xsl:for-each select="model">
660412cdedSmrg            <xsl:value-of select="configItem/name"/><xsl:text>&#9;</xsl:text><xsl:value-of select="configItem/description"/>
670412cdedSmrg            <xsl:text>&#10;</xsl:text>
680412cdedSmrg        </xsl:for-each>
690412cdedSmrg    </xsl:template>
700412cdedSmrg
710412cdedSmrg<!-- split layout/variant/description into a table like this
720412cdedSmrg
730412cdedSmrg        layout1                 description
740412cdedSmrg        layout1(variant1)       description
750412cdedSmrg        layout1(variant2)       description
760412cdedSmrg        layout2                 description
770412cdedSmrg        layout2(variant1)       description
780412cdedSmrg-->
790412cdedSmrg    <xsl:template match="layoutList">
800412cdedSmrg        <xsl:for-each select="layout">
810412cdedSmrg            <xsl:value-of select="configItem/name"/>
820412cdedSmrg            <xsl:text>&#9;</xsl:text>
830412cdedSmrg            <xsl:value-of select="configItem/description"/>
840412cdedSmrg            <xsl:text>&#10;</xsl:text>
850412cdedSmrg            <xsl:for-each select="variantList/variant">
860412cdedSmrg                <xsl:value-of select="../../configItem/name"/>
870412cdedSmrg                <xsl:text>(</xsl:text>
880412cdedSmrg                <xsl:value-of select="configItem/name"/>
890412cdedSmrg                <xsl:text>)</xsl:text>
900412cdedSmrg                <xsl:text>&#9;</xsl:text>
910412cdedSmrg                <xsl:value-of select="configItem/description"/>
920412cdedSmrg                <xsl:text>&#10;</xsl:text>
930412cdedSmrg            </xsl:for-each>
940412cdedSmrg            <xsl:text>&#10;</xsl:text>
950412cdedSmrg            <xsl:text>_&#10;</xsl:text>
960412cdedSmrg        </xsl:for-each>
970412cdedSmrg    </xsl:template>
980412cdedSmrg
990412cdedSmrg<!-- split option into a table like this
1000412cdedSmrg
1010412cdedSmrgoption description:
1020412cdedSmrg        optarg          description
1030412cdedSmrg        optarg          description
1040412cdedSmrg        optarg          description
1050412cdedSmrg
1060412cdedSmrgoption2 description:
1070412cdedSmrg        optarg          description
1080412cdedSmrg        optarg          description
1090412cdedSmrg-->
1100412cdedSmrg    <xsl:template match="optionList">
1110412cdedSmrg        <xsl:for-each select="group">
1120412cdedSmrg            <xsl:text><![CDATA[
1130412cdedSmrg.SS]]></xsl:text>
1140412cdedSmrg            <xsl:text>&#10;</xsl:text>
1150412cdedSmrg            <xsl:value-of select="configItem/description"/>
1160412cdedSmrg            <xsl:text><![CDATA[
1170412cdedSmrg.BR
1180412cdedSmrg.TS
1190412cdedSmrgleft,box;
1200412cdedSmrglB lB
1210412cdedSmrg___
1220412cdedSmrglB l.
1230412cdedSmrgOption	Description
1240412cdedSmrg]]></xsl:text>
1250412cdedSmrg            <xsl:for-each select="option">
1260412cdedSmrg                <xsl:value-of select="configItem/name"/>
1270412cdedSmrg                <xsl:text>&#9;</xsl:text>
1280412cdedSmrg                <xsl:value-of select="configItem/description"/>
1290412cdedSmrg                <xsl:text>&#10;</xsl:text>
1300412cdedSmrg            </xsl:for-each>
1310412cdedSmrg            <xsl:text><![CDATA[
1320412cdedSmrg.TE
1330412cdedSmrg
1340412cdedSmrg]]></xsl:text>
1350412cdedSmrg        </xsl:for-each>
1360412cdedSmrg    </xsl:template>
1370412cdedSmrg</xsl:stylesheet>
138