lfs-mixed.xsl 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?xml version='1.0' encoding='ISO-8859-1'?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns="http://www.w3.org/1999/xhtml"
  4. version="1.0">
  5. <!-- screen -->
  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. <xsl:otherwise>
  17. <pre class="{name(.)}">
  18. <xsl:apply-templates/>
  19. </pre>
  20. </xsl:otherwise>
  21. </xsl:choose>
  22. </xsl:template>
  23. <!-- variablelist -->
  24. <xsl:template match="variablelist">
  25. <div class="{name(.)}">
  26. <xsl:if test="title">
  27. <h3>
  28. <xsl:value-of select="title"/>
  29. </h3>
  30. </xsl:if>
  31. <dl>
  32. <xsl:if test="@role">
  33. <xsl:attribute name="class">
  34. <xsl:value-of select="@role"/>
  35. </xsl:attribute>
  36. </xsl:if>
  37. <xsl:apply-templates select="varlistentry"/>
  38. </dl>
  39. </div>
  40. </xsl:template>
  41. </xsl:stylesheet>