ut-domain.xsl 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. This file is part of the DITA Open Toolkit project.
  4. Copyright 2013 Eero Helenius
  5. See the accompanying LICENSE file for applicable license.
  6. -->
  7. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  8. xmlns:fo="http://www.w3.org/1999/XSL/Format"
  9. version="2.0">
  10. <xsl:template match="*[contains(@class,' ut-d/imagemap ')]">
  11. <xsl:variable name="attributes" as="attribute()*"><xsl:call-template name="commonattributes"/></xsl:variable>
  12. <xsl:if test="exists($attributes)">
  13. <fo:inline><xsl:sequence select="$attributes"/></fo:inline>
  14. </xsl:if>
  15. <xsl:apply-templates select="*[contains(@class,' topic/image ')]"/>
  16. <fo:list-block xsl:use-attribute-sets="ol">
  17. <xsl:apply-templates select="*[contains(@class,' ut-d/area ')]"/>
  18. </fo:list-block>
  19. </xsl:template>
  20. <xsl:template match="*[contains(@class,' ut-d/area ')]">
  21. <fo:list-item xsl:use-attribute-sets="ol.li">
  22. <xsl:call-template name="commonattributes"/>
  23. <fo:list-item-label xsl:use-attribute-sets="ol.li__label">
  24. <fo:block xsl:use-attribute-sets="ol.li__label__content">
  25. <xsl:call-template name="getVariable">
  26. <xsl:with-param name="id" select="'Ordered List Number'"/>
  27. <xsl:with-param name="params">
  28. <number>
  29. <xsl:number/>
  30. </number>
  31. </xsl:with-param>
  32. </xsl:call-template>
  33. </fo:block>
  34. </fo:list-item-label>
  35. <fo:list-item-body xsl:use-attribute-sets="ol.li__body">
  36. <fo:block xsl:use-attribute-sets="ol.li__content">
  37. <xsl:apply-templates/>
  38. </fo:block>
  39. </fo:list-item-body>
  40. </fo:list-item>
  41. </xsl:template>
  42. <xsl:template match="*[contains(@class,' ut-d/shape ')]"/>
  43. <xsl:template match="*[contains(@class,' ut-d/coords ')]"/>
  44. </xsl:stylesheet>