ut-domain.xsl 1.9 KB

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