step1-pr-d.xsl 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!--
  3. This file is part of the DITA Open Toolkit project.
  4. Copyright 2004, 2006 IBM Corporation
  5. See the accompanying LICENSE file for applicable license.
  6. -->
  7. <xsl:stylesheet version="2.0"
  8. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  9. >
  10. <xsl:template match="*[contains(@class, ' pr-d/syntaxdiagram ')]">
  11. <!-- Needs to be implemented. Could import the textual syntax diagram code for XHTML
  12. and include it as a pre-formatted block. -->
  13. </xsl:template>
  14. <xsl:template match="*[contains(@class,' pr-d/codeph ')]">
  15. <text style="tt"><xsl:call-template name="commonatts"/><xsl:apply-templates/></text>
  16. </xsl:template>
  17. <xsl:template match="*[contains(@class,' pr-d/parmname ')]">
  18. <xsl:choose>
  19. <xsl:when test="@importance='default'">
  20. <text style="bold"><text style="underlined"><xsl:call-template name="commonatts"/><xsl:apply-templates/></text></text>
  21. </xsl:when>
  22. <xsl:otherwise>
  23. <text style="bold"><xsl:call-template name="commonatts"/><xsl:apply-templates/></text>
  24. </xsl:otherwise>
  25. </xsl:choose>
  26. </xsl:template>
  27. <xsl:template match="*[contains(@class,' pr-d/var ')]">
  28. <xsl:choose>
  29. <xsl:when test="@importance='default'">
  30. <text style="italic"><text style="underlined"><xsl:call-template name="commonatts"/><xsl:apply-templates/></text></text>
  31. </xsl:when>
  32. <xsl:otherwise>
  33. <text style="italic"><xsl:call-template name="commonatts"/><xsl:apply-templates/></text>
  34. </xsl:otherwise>
  35. </xsl:choose>
  36. </xsl:template>
  37. </xsl:stylesheet>