task.xsl 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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: task.xsl 9363 2012-05-12 23:42:32Z bobstayton $
  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="common.html.attributes"/>
  29. <xsl:call-template name="id.attribute"/>
  30. <xsl:call-template name="anchor"/>
  31. <xsl:if test="(title or info/title) and $placement = 'before'">
  32. <xsl:call-template name="formal.object.heading"/>
  33. </xsl:if>
  34. <xsl:apply-templates select="$preamble"/>
  35. <xsl:if test="(title or info/title) and $placement != 'before'">
  36. <xsl:call-template name="formal.object.heading"/>
  37. </xsl:if>
  38. </div>
  39. </xsl:template>
  40. <xsl:template match="task/title">
  41. <!-- nop -->
  42. </xsl:template>
  43. <xsl:template match="tasksummary">
  44. <xsl:call-template name="semiformal.object"/>
  45. </xsl:template>
  46. <xsl:template match="tasksummary/title"/>
  47. <xsl:template match="taskprerequisites">
  48. <xsl:call-template name="semiformal.object"/>
  49. </xsl:template>
  50. <xsl:template match="taskprerequisites/title"/>
  51. <xsl:template match="taskrelated">
  52. <xsl:call-template name="semiformal.object"/>
  53. </xsl:template>
  54. <xsl:template match="taskrelated/title"/>
  55. </xsl:stylesheet>