pr-d.xsl 876 B

123456789101112131415161718192021222324252627
  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. 2005 All Rights Reserved. -->
  6. <xsl:stylesheet version="2.0"
  7. xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  8. <xsl:output method="text"/>
  9. <xsl:template match="*[contains(@class,' pr-d/codeph ')]">
  10. {\f5 <xsl:apply-templates/>}
  11. </xsl:template>
  12. <xsl:template match="*[contains(@class,' pr-d/codeblock ')]">
  13. <xsl:call-template name="gen-id"/><xsl:if test="@spectitle and not(@spectitle='')">\par
  14. \plain\f4\fs24\b <xsl:value-of select="@spectitle"/></xsl:if>
  15. \par {\plain\f5\fs24
  16. <xsl:apply-templates/>}
  17. </xsl:template>
  18. <xsl:template match="*[contains(@class,' pr-d/var ')]">
  19. {\i <xsl:apply-templates/>}
  20. </xsl:template>
  21. </xsl:stylesheet>