lfs-mixed.xsl 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. <!-- screen -->
  7. <xsl:template match="screen">
  8. <xsl:choose>
  9. <!-- Temporally hack -->
  10. <xsl:when test="child::* = userinput">
  11. <pre class="{name(.)}">
  12. <kbd class="command">
  13. <xsl:value-of select="."/>
  14. </kbd>
  15. </pre>
  16. </xsl:when>
  17. <xsl:otherwise>
  18. <pre class="{name(.)}">
  19. <xsl:apply-templates/>
  20. </pre>
  21. </xsl:otherwise>
  22. </xsl:choose>
  23. </xsl:template>
  24. <!-- variablelist -->
  25. <xsl:template match="variablelist">
  26. <div class="{name(.)}">
  27. <xsl:if test="title">
  28. <h3>
  29. <xsl:value-of select="title"/>
  30. </h3>
  31. </xsl:if>
  32. <dl>
  33. <xsl:if test="@role">
  34. <xsl:attribute name="class">
  35. <xsl:value-of select="@role"/>
  36. </xsl:attribute>
  37. </xsl:if>
  38. <xsl:apply-templates select="varlistentry"/>
  39. </dl>
  40. </div>
  41. </xsl:template>
  42. </xsl:stylesheet>