summaryrefslogtreecommitdiff
path: root/xslt
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2020-05-27 10:03:18 +1000
committerSergey Udaltsov <sergey.udaltsov@gmail.com>2020-06-02 20:04:48 +0000
commitd2a8950b42fb07b26a4377bf5bf00c442327dcd7 (patch)
tree452da32f9f64c8a2cb510f33b8dd6e1e7a112e92 /xslt
parenta3db589bc4f0dab7233beb92b320ca9368d951a5 (diff)
xslt: remove the xfree86.xsl
Best I can guess here is that this was a script to convert from some previous format to the format we have now. It doesn't appear to have been used since 2004, it's not hooked into the tree and the git history only mentions it in the ChangeLog. Let's remove it, we no longer need it. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'xslt')
-rw-r--r--xslt/xfree86.xsl50
1 files changed, 0 insertions, 50 deletions
diff --git a/xslt/xfree86.xsl b/xslt/xfree86.xsl
deleted file mode 100644
index 29345b74..00000000
--- a/xslt/xfree86.xsl
+++ /dev/null
@@ -1,50 +0,0 @@
-<?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>