software2db.xsl 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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, 2005 All Rights Reserved. -->
  6. <xsl:stylesheet version="2.0"
  7. xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  8. <xsl:template match="*[contains(@class,' sw-d/msgblock ')]">
  9. <programlisting>
  10. <xsl:call-template name="setStandardAttr">
  11. <xsl:with-param name="IDPrefix" select="'msgblck'"/>
  12. </xsl:call-template>
  13. <xsl:apply-templates/>
  14. </programlisting>
  15. </xsl:template>
  16. <xsl:template match="*[contains(@class,' sw-d/msgnum ')]">
  17. <errorcode>
  18. <xsl:call-template name="setStandardAttr">
  19. <xsl:with-param name="IDPrefix" select="'msgnm'"/>
  20. </xsl:call-template>
  21. <xsl:apply-templates/>
  22. </errorcode>
  23. </xsl:template>
  24. <xsl:template match="*[contains(@class,' sw-d/msgph ')]">
  25. <errortext>
  26. <xsl:call-template name="setStandardAttr">
  27. <xsl:with-param name="IDPrefix" select="'msgph'"/>
  28. </xsl:call-template>
  29. <xsl:apply-templates/>
  30. </errortext>
  31. </xsl:template>
  32. <xsl:template match="*[contains(@class,' sw-d/cmdname ')]">
  33. <command>
  34. <xsl:call-template name="setStandardAttr">
  35. <xsl:with-param name="IDPrefix" select="'cmdnm'"/>
  36. </xsl:call-template>
  37. <xsl:apply-templates/>
  38. </command>
  39. </xsl:template>
  40. <xsl:template match="*[contains(@class,' sw-d/varname ')]">
  41. <varname>
  42. <xsl:call-template name="setStandardAttr">
  43. <xsl:with-param name="IDPrefix" select="'vrnm'"/>
  44. </xsl:call-template>
  45. <xsl:apply-templates/>
  46. </varname>
  47. </xsl:template>
  48. <xsl:template match="*[contains(@class,' sw-d/filepath ')]">
  49. <filename>
  50. <xsl:call-template name="setStandardAttr">
  51. <xsl:with-param name="IDPrefix" select="'flpth'"/>
  52. </xsl:call-template>
  53. <xsl:apply-templates/>
  54. </filename>
  55. </xsl:template>
  56. <xsl:template match="*[contains(@class,' sw-d/userinput ')]">
  57. <userinput>
  58. <xsl:call-template name="setStandardAttr">
  59. <xsl:with-param name="IDPrefix" select="'usrinpt'"/>
  60. </xsl:call-template>
  61. <xsl:apply-templates/>
  62. </userinput>
  63. </xsl:template>
  64. <xsl:template match="*[contains(@class,' sw-d/systemoutput ')]">
  65. <computeroutput>
  66. <xsl:call-template name="setStandardAttr">
  67. <xsl:with-param name="IDPrefix" select="'stmotpt'"/>
  68. </xsl:call-template>
  69. <xsl:apply-templates/>
  70. </computeroutput>
  71. </xsl:template>
  72. </xsl:stylesheet>