step1-pr-d.xsl 1.6 KB

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