sw-d.xsl 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!--
  3. This file is part of the DITA Open Toolkit project.
  4. Copyright 2004, 2005 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. <!-- software-domain.ent domain: filepath | msgph | userinput | systemoutput | cmdname | msgnum | varname -->
  10. <xsl:template match="*[contains(@class,' sw-d/filepath ')]" name="topic.sw-d.filepath">
  11. <span class="filepath">
  12. <xsl:call-template name="commonattributes"/>
  13. <xsl:call-template name="setidaname"/>
  14. <xsl:apply-templates/>
  15. </span>
  16. </xsl:template>
  17. <xsl:template match="*[contains(@class,' sw-d/msgph ')]" name="topic.sw-d.msgph">
  18. <samp class="msgph">
  19. <xsl:call-template name="commonattributes"/>
  20. <xsl:call-template name="setidaname"/>
  21. <xsl:apply-templates/>
  22. </samp>
  23. </xsl:template>
  24. <xsl:template match="*[contains(@class,' sw-d/userinput ')]" name="topic.sw-d.userinput">
  25. <kbd class="userinput">
  26. <xsl:call-template name="commonattributes"/>
  27. <xsl:call-template name="setidaname"/>
  28. <xsl:apply-templates/>
  29. </kbd>
  30. </xsl:template>
  31. <xsl:template match="*[contains(@class,' sw-d/systemoutput ')]" name="topic.sw-d.systemoutput">
  32. <samp class="sysout">
  33. <xsl:call-template name="commonattributes"/>
  34. <xsl:call-template name="setidaname"/>
  35. <xsl:apply-templates/>
  36. </samp>
  37. </xsl:template>
  38. <xsl:template match="*[contains(@class,' sw-d/cmdname ')]" name="topic.sw-d.cmdname">
  39. <span class="cmdname">
  40. <xsl:call-template name="commonattributes"/>
  41. <xsl:call-template name="setidaname"/>
  42. <xsl:apply-templates/>
  43. </span>
  44. </xsl:template>
  45. <xsl:template match="*[contains(@class,' sw-d/msgnum ')]" name="topic.sw-d.msgnum">
  46. <span class="msgnum">
  47. <xsl:call-template name="commonattributes"/>
  48. <xsl:call-template name="setidaname"/>
  49. <xsl:apply-templates/>
  50. </span>
  51. </xsl:template>
  52. <xsl:template match="*[contains(@class,' sw-d/varname ')]" name="topic.sw-d.varname">
  53. <var class="varname">
  54. <xsl:call-template name="commonattributes"/>
  55. <xsl:call-template name="setidaname"/>
  56. <xsl:apply-templates/>
  57. </var>
  58. </xsl:template>
  59. </xsl:stylesheet>