topicpull-task.xsl 1.2 KB

123456789101112131415161718192021222324252627
  1. <?xml version="1.0"?>
  2. <!--
  3. This file is part of the DITA Open Toolkit project.
  4. Copyright 2010 IBM Corporation
  5. See the accompanying LICENSE file for applicable license.
  6. -->
  7. <!-- This file added for SourceForge bug report #2962813 -->
  8. <xsl:stylesheet version="2.0"
  9. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  10. xmlns:topicpull="http://dita-ot.sourceforge.net/ns/200704/topicpull"
  11. xmlns:ditamsg="http://dita-ot.sourceforge.net/ns/200704/ditamsg"
  12. exclude-result-prefixes="topicpull ditamsg ">
  13. <!-- When cross referencing a step, skip any stepsection elements in the step count -->
  14. <xsl:template match="*[contains(@class,' task/step ')]" mode="topicpull:li-linktext">
  15. <xsl:number level="multiple"
  16. count="*[contains(@class,' task/step ')]" format="1.a.i.1.a.i.1.a.i"/>
  17. </xsl:template>
  18. <xsl:template match="*[contains(@class,' task/substep ')]" mode="topicpull:li-linktext">
  19. <xsl:number level="multiple"
  20. count="*[contains(@class,' topic/ol ')]/*[contains(@class,' topic/li ')][not(contains(@class,' task/stepsection '))]" format="1.a.i.1.a.i.1.a.i"/>
  21. </xsl:template>
  22. </xsl:stylesheet>