sw-d.xsl 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. <!-- software-domain.ent domain: filepath | msgph | userinput | systemoutput | cmdname | msgnum | varname -->
  9. <xsl:template match="*[contains(@class,' sw-d/filepath ')]" name="topic.sw-d.filepath">
  10. <span class="filepath">
  11. <xsl:call-template name="commonattributes"/>
  12. <xsl:call-template name="setidaname"/>
  13. <xsl:apply-templates/>
  14. </span>
  15. </xsl:template>
  16. <xsl:template match="*[contains(@class,' sw-d/msgph ')]" name="topic.sw-d.msgph">
  17. <samp class="msgph">
  18. <xsl:call-template name="commonattributes"/>
  19. <xsl:call-template name="setidaname"/>
  20. <xsl:apply-templates/>
  21. </samp>
  22. </xsl:template>
  23. <xsl:template match="*[contains(@class,' sw-d/userinput ')]" name="topic.sw-d.userinput">
  24. <kbd class="userinput">
  25. <xsl:call-template name="commonattributes"/>
  26. <xsl:call-template name="setidaname"/>
  27. <xsl:apply-templates/>
  28. </kbd>
  29. </xsl:template>
  30. <xsl:template match="*[contains(@class,' sw-d/systemoutput ')]" name="topic.sw-d.systemoutput">
  31. <samp class="sysout">
  32. <xsl:call-template name="commonattributes"/>
  33. <xsl:call-template name="setidaname"/>
  34. <xsl:apply-templates/>
  35. </samp>
  36. </xsl:template>
  37. <xsl:template match="*[contains(@class,' sw-d/cmdname ')]" name="topic.sw-d.cmdname">
  38. <span class="cmdname">
  39. <xsl:call-template name="commonattributes"/>
  40. <xsl:call-template name="setidaname"/>
  41. <xsl:apply-templates/>
  42. </span>
  43. </xsl:template>
  44. <xsl:template match="*[contains(@class,' sw-d/msgnum ')]" name="topic.sw-d.msgnum">
  45. <span class="msgnum">
  46. <xsl:call-template name="commonattributes"/>
  47. <xsl:call-template name="setidaname"/>
  48. <xsl:apply-templates/>
  49. </span>
  50. </xsl:template>
  51. <xsl:template match="*[contains(@class,' sw-d/varname ')]" name="topic.sw-d.varname">
  52. <var class="varname">
  53. <xsl:call-template name="commonattributes"/>
  54. <xsl:call-template name="setidaname"/>
  55. <xsl:apply-templates/>
  56. </var>
  57. </xsl:template>
  58. </xsl:stylesheet>