ui-d.xsl 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. <!-- Screen -->
  10. <xsl:template match="*[contains(@class,' ui-d/screen ')]">
  11. {\plain \cb2\f5\fs24 <xsl:apply-templates/>}
  12. </xsl:template>
  13. <!-- ui-domain.ent domain: uicontrol | wintitle | menucascade | shortcut -->
  14. <xsl:template match="*[contains(@class,' ui-d/uicontrol ')]">
  15. <!-- insert an arrow with leading/trailing spaces before all but the first uicontrol in a menucascade -->
  16. <xsl:if test="ancestor::*[contains(@class,' ui-d/menucascade ')]">
  17. <xsl:variable name="uicontrolcount"><xsl:number count="*[contains(@class,' ui-d/uicontrol ')]"/></xsl:variable>
  18. <xsl:if test="$uicontrolcount&gt;'1'">
  19. <xsl:text> > </xsl:text>
  20. </xsl:if>
  21. </xsl:if>
  22. {\b <xsl:apply-templates/>}
  23. </xsl:template>
  24. <xsl:template match="*[contains(@class,' ui-d/wintitle ')]">
  25. {\f4\fs24\b <xsl:apply-templates/>}
  26. </xsl:template>
  27. <xsl:template match="*[contains(@class,' ui-d/shortcut ')]" name="topic.ui-d.shortcut">
  28. {\ul <xsl:apply-templates/>}
  29. </xsl:template>
  30. </xsl:stylesheet>