clean-map.xsl 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. This file is part of the DITA Open Toolkit project.
  4. Copyright 2014 Jarno Elovirta
  5. See the accompanying LICENSE file for applicable license.
  6. -->
  7. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  8. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  9. version="2.0"
  10. exclude-result-prefixes="xs">
  11. <xsl:import href="../common/dita-utilities.xsl"/>
  12. <xsl:import href="../common/output-message.xsl"/>
  13. <!-- Deprecated since 2.3 -->
  14. <xsl:variable name="msgprefix">DOTX</xsl:variable>
  15. <xsl:template match="node() | @*">
  16. <xsl:copy>
  17. <xsl:apply-templates select="node() | @*"/>
  18. </xsl:copy>
  19. </xsl:template>
  20. <xsl:template match="*[contains(@class, ' ditaot-d/submap ')]">
  21. <xsl:apply-templates/>
  22. </xsl:template>
  23. <xsl:template match="*[contains(@class, ' ditaot-d/submap-title ')]"/>
  24. <xsl:template match="*[contains(@class, ' ditaot-d/submap-topicmeta ')]"/>
  25. <xsl:template match="*[contains(@class, ' ditaot-d/submap-topicmeta-container ')]"/>
  26. <xsl:template match="*[contains(@class, ' ditaot-d/keydef ')]"/>
  27. <xsl:template match="*[contains(@class, ' mapgroup-d/topicgroup ')]/*/*[contains(@class, ' topic/navtitle ')]">
  28. <xsl:call-template name="output-message">
  29. <xsl:with-param name="id" select="'DOTX072I'"/>
  30. </xsl:call-template>
  31. </xsl:template>
  32. </xsl:stylesheet>