ui-d2textonly.xsl 851 B

123456789101112131415161718192021222324
  1. <?xml version="1.0"?>
  2. <!--
  3. This file is part of the DITA Open Toolkit project.
  4. Copyright 2010 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. xmlns:dita-ot="http://dita-ot.sourceforge.net/ns/201007/dita-ot"
  10. exclude-result-prefixes="dita-ot"
  11. >
  12. <xsl:template match="*[contains(@class, ' ui-d/uicontrol ')]" mode="dita-ot:text-only">
  13. <xsl:if test="parent::*[contains(@class,' ui-d/menucascade ')] and preceding-sibling::*[contains(@class, ' ui-d/uicontrol ')]">
  14. <xsl:call-template name="getVariable">
  15. <xsl:with-param name="id" select="'#menucascade-separator'"/>
  16. </xsl:call-template>
  17. </xsl:if>
  18. <xsl:apply-templates select="*|text()" mode="dita-ot:text-only"/>
  19. </xsl:template>
  20. </xsl:stylesheet>