step1-ut-d.xsl 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. <?xml version="1.0"?>
  2. <!--
  3. This file is part of the DITA Open Toolkit project.
  4. Copyright 2004, 2006 IBM Corporation
  5. See the accompanying LICENSE file for applicable license.
  6. -->
  7. <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  8. <xsl:output method="xml"/>
  9. <xsl:template match="*[contains(@class, ' ut-d/imagemap ')]">
  10. <!-- Only use the image -->
  11. <block><xsl:call-template name="commonatts"/>
  12. <xsl:choose>
  13. <xsl:when test="*[contains(@class, ' ut-d/imagemap ')]/*[contains(@class,' topic/image ')]/*[contains(@class,' topic/alt ')]">
  14. <xsl:apply-templates select="*[contains(@class, ' ut-d/imagemap ')]/*[contains(@class,' topic/image ')]/*[contains(@class,' topic/alt ')]"/>
  15. </xsl:when>
  16. <xsl:otherwise>
  17. <xsl:apply-templates select="*[contains(@class, ' ut-d/imagemap ')]/*[contains(@class,' topic/image ')]/@alt"/>
  18. </xsl:otherwise>
  19. </xsl:choose>
  20. </block>
  21. </xsl:template>
  22. <xsl:template match="*[contains(@class, ' ut-d/area ')]"/>
  23. <xsl:template match="*[contains(@class, ' ut-d/coords ')]"/>
  24. <xsl:template match="*[contains(@class, ' ut-d/shape ')]"/>
  25. </xsl:stylesheet>