task.xsl 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?xml version="1.0" encoding="ASCII"?>
  2. <!--This file was created automatically by html2xhtml-->
  3. <!--from the HTML stylesheets.-->
  4. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0">
  5. <!-- ********************************************************************
  6. $Id$
  7. ********************************************************************
  8. This file is part of the XSL DocBook Stylesheet distribution.
  9. See ../README or http://docbook.sf.net/release/xsl/current/ for
  10. copyright and other information.
  11. ******************************************************************** -->
  12. <!-- ==================================================================== -->
  13. <xsl:template match="task">
  14. <xsl:variable name="param.placement" select="substring-after(normalize-space($formal.title.placement), concat(local-name(.), ' '))"/>
  15. <xsl:variable name="placement">
  16. <xsl:choose>
  17. <xsl:when test="contains($param.placement, ' ')">
  18. <xsl:value-of select="substring-before($param.placement, ' ')"/>
  19. </xsl:when>
  20. <xsl:when test="$param.placement = ''">before</xsl:when>
  21. <xsl:otherwise>
  22. <xsl:value-of select="$param.placement"/>
  23. </xsl:otherwise>
  24. </xsl:choose>
  25. </xsl:variable>
  26. <xsl:variable name="preamble" select="*[not(self::title or self::titleabbrev)]"/>
  27. <div>
  28. <xsl:apply-templates select="." mode="class.attribute"/>
  29. <xsl:call-template name="anchor"/>
  30. <xsl:if test="title and $placement = 'before'">
  31. <xsl:call-template name="formal.object.heading"/>
  32. </xsl:if>
  33. <xsl:apply-templates select="$preamble"/>
  34. <xsl:if test="title and $placement != 'before'">
  35. <xsl:call-template name="formal.object.heading"/>
  36. </xsl:if>
  37. </div>
  38. </xsl:template>
  39. <xsl:template match="task/title">
  40. <!-- nop -->
  41. </xsl:template>
  42. <xsl:template match="tasksummary">
  43. <xsl:call-template name="semiformal.object"/>
  44. </xsl:template>
  45. <xsl:template match="tasksummary/title"/>
  46. <xsl:template match="taskprerequisites">
  47. <xsl:call-template name="semiformal.object"/>
  48. </xsl:template>
  49. <xsl:template match="taskprerequisites/title"/>
  50. <xsl:template match="taskrelated">
  51. <xsl:call-template name="semiformal.object"/>
  52. </xsl:template>
  53. <xsl:template match="taskrelated/title"/>
  54. </xsl:stylesheet>