diff options
author | marha <marha@users.sourceforge.net> | 2012-11-19 10:16:38 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-11-19 10:16:38 +0100 |
commit | 3744281b9ae8aa0ab86ceaee1afe8a603e3aeb2c (patch) | |
tree | f59b9749730728729691a8a1efd54dce95f0177c /xorg-server/xkeyboard-config/xslt/xfree86.xsl | |
parent | 8d57b7fcb22cf1a52203ee57c745b64bba649249 (diff) | |
download | vcxsrv-3744281b9ae8aa0ab86ceaee1afe8a603e3aeb2c.tar.gz vcxsrv-3744281b9ae8aa0ab86ceaee1afe8a603e3aeb2c.tar.bz2 vcxsrv-3744281b9ae8aa0ab86ceaee1afe8a603e3aeb2c.zip |
dos -> unix
Diffstat (limited to 'xorg-server/xkeyboard-config/xslt/xfree86.xsl')
-rw-r--r-- | xorg-server/xkeyboard-config/xslt/xfree86.xsl | 100 |
1 files changed, 50 insertions, 50 deletions
diff --git a/xorg-server/xkeyboard-config/xslt/xfree86.xsl b/xorg-server/xkeyboard-config/xslt/xfree86.xsl index 8b4e84976..29345b747 100644 --- a/xorg-server/xkeyboard-config/xslt/xfree86.xsl +++ b/xorg-server/xkeyboard-config/xslt/xfree86.xsl @@ -1,50 +1,50 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- >
-<xsl:output method="xml"
- encoding="UTF-8"
- doctype-system="xkb.dtd"
- indent="yes"/>
-
- <!-- Transform all "simple" elements as they are -->
- <xsl:template match="@*|xkbConfigRegistry|layout|layoutList|model|modelList|group|option|optionList|variant|variantList">
- <xsl:copy>
- <xsl:apply-templates select="@*|*"/>
- </xsl:copy>
- </xsl:template>
-
- <!-- Tricky business: configItem -->
- <xsl:template match="configItem">
- <configItem xsl:space="preserve">
- <name><xsl:value-of select="./name"/></name>
- <!-- If there are some shortDescriptions -->
- <xsl:if test="count(./shortDescription)!=0">
- <!-- First, put the non-translated version -->
- <shortDescription><xsl:value-of select="./shortDescription[not(@xml:lang)]"/></shortDescription>
- <!-- For all translated versions ... -->
- <xsl:for-each select="./shortDescription[@xml:lang]">
- <!-- ... which are different from non-translated one ... -->
- <xsl:if test="../shortDescription[not(@xml:lang)]/text() != ./text()">
- <!-- ... - output! -->
- <shortDescription xml:lang="{./@xml:lang}"><xsl:value-of select="./text()"/></shortDescription>
- </xsl:if>
- </xsl:for-each>
- </xsl:if>
- <!-- If there are some descriptions -->
- <xsl:if test="count(./description)!=0">
- <!-- First, put the non-translated version -->
- <description><xsl:value-of select="./description[not(@xml:lang)]"/></description>
- <!-- For all translated versions ... -->
- <xsl:for-each select="./description[@xml:lang]">
- <!-- ... which are different from non-translated one ... -->
- <xsl:if test="../description[not(@xml:lang)]/text() != ./text()">
- <!-- ... - output! -->
- <description xml:lang="{./@xml:lang}"><xsl:value-of select="./text()"/></description>
- </xsl:if>
- </xsl:for-each>
- </xsl:if>
- </configItem>
- </xsl:template>
-
-</xsl:stylesheet>
+<?xml version="1.0" encoding="UTF-8"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + > +<xsl:output method="xml" + encoding="UTF-8" + doctype-system="xkb.dtd" + indent="yes"/> + + <!-- Transform all "simple" elements as they are --> + <xsl:template match="@*|xkbConfigRegistry|layout|layoutList|model|modelList|group|option|optionList|variant|variantList"> + <xsl:copy> + <xsl:apply-templates select="@*|*"/> + </xsl:copy> + </xsl:template> + + <!-- Tricky business: configItem --> + <xsl:template match="configItem"> + <configItem xsl:space="preserve"> + <name><xsl:value-of select="./name"/></name> + <!-- If there are some shortDescriptions --> + <xsl:if test="count(./shortDescription)!=0"> + <!-- First, put the non-translated version --> + <shortDescription><xsl:value-of select="./shortDescription[not(@xml:lang)]"/></shortDescription> + <!-- For all translated versions ... --> + <xsl:for-each select="./shortDescription[@xml:lang]"> + <!-- ... which are different from non-translated one ... --> + <xsl:if test="../shortDescription[not(@xml:lang)]/text() != ./text()"> + <!-- ... - output! --> + <shortDescription xml:lang="{./@xml:lang}"><xsl:value-of select="./text()"/></shortDescription> + </xsl:if> + </xsl:for-each> + </xsl:if> + <!-- If there are some descriptions --> + <xsl:if test="count(./description)!=0"> + <!-- First, put the non-translated version --> + <description><xsl:value-of select="./description[not(@xml:lang)]"/></description> + <!-- For all translated versions ... --> + <xsl:for-each select="./description[@xml:lang]"> + <!-- ... which are different from non-translated one ... --> + <xsl:if test="../description[not(@xml:lang)]/text() != ./text()"> + <!-- ... - output! --> + <description xml:lang="{./@xml:lang}"><xsl:value-of select="./text()"/></description> + </xsl:if> + </xsl:for-each> + </xsl:if> + </configItem> + </xsl:template> + +</xsl:stylesheet> |