summaryrefslogtreecommitdiff
path: root/xslt
diff options
context:
space:
mode:
authorsvu <svu>2004-12-13 00:42:22 +0000
committersvu <svu>2004-12-13 00:42:22 +0000
commit38ac5fc7bd2b1de61d383a3568d9128699bb4a44 (patch)
tree5a6ed9ecf4b3d2086504dcd07782c724c6509da1 /xslt
parente0eb665e7d3cf4f6733130d115967ed657606980 (diff)
extracting layout descriptions from base.xml - so we could compare to symbols
Diffstat (limited to 'xslt')
-rw-r--r--xslt/reg2ll.xsl23
1 files changed, 23 insertions, 0 deletions
diff --git a/xslt/reg2ll.xsl b/xslt/reg2ll.xsl
new file mode 100644
index 00000000..cf8a3481
--- /dev/null
+++ b/xslt/reg2ll.xsl
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ >
+<xsl:output method="text"
+ encoding="UTF-8"
+ doctype-system="xkb.dtd"
+ indent="no"/>
+
+<xsl:template match="modelList|optionList|name|description|shortDescription|configItem"/>
+<xsl:strip-space elements="*"/>
+
+<xsl:template match="layoutList"><xsl:apply-templates select="./layout"/></xsl:template>
+
+<xsl:template match="variantList"><xsl:apply-templates select="./variant"/></xsl:template>
+
+<xsl:template match="layout"><xsl:text>
+</xsl:text><xsl:value-of select="./configItem/name"/>: "<xsl:value-of select="./configItem/description"/>"<xsl:apply-templates match="./variantList/variant"/>
+</xsl:template>
+
+<xsl:template match="variant"><xsl:text>
+</xsl:text><xsl:value-of select="../../configItem/name"/>: "<xsl:value-of select="./configItem/description"/>"</xsl:template>
+</xsl:stylesheet>