step1-ut-d.xsl 1.2 KB

12345678910111213141516171819202122232425262728
  1. <?xml version="1.0"?>
  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, 2006 All Rights Reserved. -->
  6. <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  7. <xsl:output method="xml"/>
  8. <xsl:template match="*[contains(@class, ' ut-d/imagemap ')]">
  9. <!-- Only use the image -->
  10. <block><xsl:call-template name="commonatts"/>
  11. <xsl:choose>
  12. <xsl:when test="*[contains(@class, ' ut-d/imagemap ')]/*[contains(@class,' topic/image ')]/*[contains(@class,' topic/alt ')]">
  13. <xsl:apply-templates select="*[contains(@class, ' ut-d/imagemap ')]/*[contains(@class,' topic/image ')]/*[contains(@class,' topic/alt ')]"/>
  14. </xsl:when>
  15. <xsl:otherwise>
  16. <xsl:apply-templates select="*[contains(@class, ' ut-d/imagemap ')]/*[contains(@class,' topic/image ')]/@alt"/>
  17. </xsl:otherwise>
  18. </xsl:choose>
  19. </block>
  20. </xsl:template>
  21. <xsl:template match="*[contains(@class, ' ut-d/area ')]"/>
  22. <xsl:template match="*[contains(@class, ' ut-d/coords ')]"/>
  23. <xsl:template match="*[contains(@class, ' ut-d/shape ')]"/>
  24. </xsl:stylesheet>