lfs-mixed.xsl 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version='1.0' encoding='ISO-8859-1'?>
  2. <!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> -->
  3. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  4. xmlns="http://www.w3.org/1999/xhtml"
  5. version="1.0">
  6. <xsl:template match="screen">
  7. <xsl:choose>
  8. <!-- Temporally hack -->
  9. <xsl:when test="child::* = userinput">
  10. <pre class="{name(.)}">
  11. <kbd class="command">
  12. <xsl:value-of select="."/>
  13. </kbd>
  14. </pre>
  15. </xsl:when>
  16. <!-- This should be fixed in the XML code -->
  17. <!--
  18. <xsl:when test="contains(text() , 'SBU')">
  19. <p class="sbu">
  20. <tt>
  21. <xsl:value-of select="substring-before(text() , 'R')"/>
  22. <br/>
  23. <xsl:value-of select="substring-after(text() , 'U')"/>
  24. </tt>
  25. </p>
  26. </xsl:when>
  27. -->
  28. <xsl:otherwise>
  29. <pre class="{name(.)}">
  30. <xsl:apply-templates/>
  31. </pre>
  32. </xsl:otherwise>
  33. </xsl:choose>
  34. </xsl:template>
  35. </xsl:stylesheet>