aboutsummaryrefslogtreecommitdiffstats
path: root/stylesheets/xhtml/lfs-mixed.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'stylesheets/xhtml/lfs-mixed.xsl')
-rw-r--r--stylesheets/xhtml/lfs-mixed.xsl39
1 files changed, 39 insertions, 0 deletions
diff --git a/stylesheets/xhtml/lfs-mixed.xsl b/stylesheets/xhtml/lfs-mixed.xsl
new file mode 100644
index 000000000..08dc2262f
--- /dev/null
+++ b/stylesheets/xhtml/lfs-mixed.xsl
@@ -0,0 +1,39 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+
+<!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> -->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns="http://www.w3.org/1999/xhtml"
+ version="1.0">
+
+ <xsl:template match="screen">
+ <xsl:choose>
+ <!-- Temporally hack -->
+ <xsl:when test="child::* = userinput">
+ <pre class="{name(.)}">
+ <kbd class="command">
+ <xsl:value-of select="."/>
+ </kbd>
+ </pre>
+ </xsl:when>
+ <!-- This should be fixed in the XML code -->
+ <!--
+ <xsl:when test="contains(text() , 'SBU')">
+ <p class="sbu">
+ <tt>
+ <xsl:value-of select="substring-before(text() , 'R')"/>
+ <br/>
+ <xsl:value-of select="substring-after(text() , 'U')"/>
+ </tt>
+ </p>
+ </xsl:when>
+ -->
+ <xsl:otherwise>
+ <pre class="{name(.)}">
+ <xsl:apply-templates/>
+ </pre>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+</xsl:stylesheet>